Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(raw): replace NaN values by 'NaN' inside output matrices #2278

Draft
wants to merge 1 commit into
base: dev
Choose a base branch
from

Conversation

MartinBelthle
Copy link
Contributor

No description provided.

@MartinBelthle MartinBelthle self-assigned this Dec 20, 2024
@MartinBelthle MartinBelthle marked this pull request as draft January 3, 2025 13:54
@MartinBelthle
Copy link
Contributor Author

Some output matrices have NaN values. Currently we try to replace them by None but it does nothing (output_series_matrix file) and we serialize NaN values as NaN (with pydanitic type adapter). But JavaScript cannot seems to parse the JSON and so the front-end has to do some post-processing to display those matrices.

This PR replaces the NaN by "NaN" for the JSON to be JavaScript parsable. It works well but we're not too sure we should do it so I'll mark this PR as draft

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant