diff options
Diffstat (limited to 'gn3/api')
-rw-r--r-- | gn3/api/correlation.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gn3/api/correlation.py b/gn3/api/correlation.py index c0b5806..1caf31f 100644 --- a/gn3/api/correlation.py +++ b/gn3/api/correlation.py @@ -110,7 +110,7 @@ def partial_correlation(): tuple(trait_fullname(trait) for trait in args["control_traits"]), args["method"], int(args["criteria"]), args["target_db"]) response = make_response( - json.dumps(corr_results, cls=OutputEncoder), + json.dumps(corr_results, cls=OutputEncoder).replace(": NaN", ": null"), 400 if "error" in corr_results.keys() else 200) response.headers["Content-Type"] = "application/json" return response |