Skip to content

Use of NaN in mesh.json output files #95

Description

@thomaszwagerman

In meshes where a parameter is missing:

"cellboxes": [
        {
            "geometry": "POLYGON ((-110 -80, -110 -77.5, -105 -77.5, -105 -80, -110 -80))",
            "cx": -107.5,
            "cy": -78.75,
            "dcx": 2.5,
            "dcy": 1.25,
            "elevation": 2000.0,
            "SIC": NaN,
            "uC": NaN,
            "vC": NaN,
            "thickness": 0.65,
            "density": 920.0,
            "id": "0"
        },
]

NaN is used to indicate null. NaN is not valid JSON, and causes issues with any PostgreSQL ingestion.

Ideally this is converted to None (ie, null in JSON), which is a valid JSON value.

Metadata

Metadata

Assignees

No one assigned

    Labels

    invalidThis doesn't seem right

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions