You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When calling the results endpoints (for example with curl -X GET "localhost:8000/results/gambling/all") an error may occur if any of the floats in the result is float('inf') or float('NaN').
The logs will show this error:
ValueError: Out of range float values are not JSON compliant
This is related to the way pydantic, in particular the model ExperimentResult in our code, handles the encoding of the floats.
Newer versions have tackle this problem (this PR).
You can upgrade the version of the packages and adapt the code, or you can use the endpoint curl -X GET "localhost:8000/graph/results/gambling" --output "graph_all_results.html" which does not use the model ExperimentResult.
The text was updated successfully, but these errors were encountered:
When calling the results endpoints (for example with
curl -X GET "localhost:8000/results/gambling/all"
) an error may occur if any of the floats in the result isfloat('inf')
orfloat('NaN')
.The logs will show this error:
This is related to the way pydantic, in particular the model
ExperimentResult
in our code, handles the encoding of the floats.Newer versions have tackle this problem (this PR).
You can upgrade the version of the packages and adapt the code, or you can use the endpoint
curl -X GET "localhost:8000/graph/results/gambling" --output "graph_all_results.html"
which does not use the modelExperimentResult
.The text was updated successfully, but these errors were encountered: