Skip to content

Corrupt JSON in output_parameters dictionary #1633

@dbirman

Description

@dbirman

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.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions