Skip to content

Transformer output JSON files include NaN values #124

@daniel-thom

Description

@daniel-thom

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.

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions