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

Convert NaN to None in TimeSeries Models #11

Merged
merged 2 commits into from
Aug 2, 2024
Merged

Convert NaN to None in TimeSeries Models #11

merged 2 commits into from
Aug 2, 2024

Conversation

JrtPec
Copy link
Contributor

@JrtPec JrtPec commented Aug 2, 2024

Fixed a bug where Pydantic's JSON dumping would fail when a data array contained NaN values. (Apparently NaN is not JSON compatible, officially).

Converters were added that convert NaN to None when the Pydantic Timeseries models are created.

@JrtPec JrtPec merged commit 0f94f75 into main Aug 2, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant