The output_parameters dictionary in session.stimulus_epochs can under some circumstances end up containing np.nan which is not valid JSON, please convert these values to None. The code at issue is here is all four values related to water here:
|
water_after_session = float( |
This affected some old sessions but hasn't come up again since. So either it's already been fixed (in which case sorry for the unnecessary ticket) or these values always get real values instead of np.nan now. In any case, would be good to fix the code so the issue doesn't come up again.
The
output_parametersdictionary insession.stimulus_epochscan under some circumstances end up containingnp.nanwhich is not valid JSON, please convert these values toNone. The code at issue is here is all four values related to water here:dynamic-foraging-task/src/foraging_gui/GenerateMetadata.py
Line 1100 in e95d825
This affected some old sessions but hasn't come up again since. So either it's already been fixed (in which case sorry for the unnecessary ticket) or these values always get real values instead of np.nan now. In any case, would be good to fix the code so the issue doesn't come up again.