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

Transformer output JSON files include NaN values #124

Open
daniel-thom opened this issue May 16, 2022 · 0 comments
Open

Transformer output JSON files include NaN values #124

daniel-thom opened this issue May 16, 2022 · 0 comments

Comments

@daniel-thom
Copy link
Collaborator

In the upgrade cost module many transformer values get initialized with np.nan. I don't think this is a good idea because many of these values end up getting serialized to JSON files. I don't think that NaN is valid JSON. I think you should use Python None which will get serialized to null. Alternatively, you could write a custom JSON encoder to translate them for you.

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

No branches or pull requests

2 participants