Skip to content

Grid generation from geqdsk with NaNs #113

@nick-walkden

Description

@nick-walkden

This is quite a specific issue, but one that I have run into a few times now when dealing with output from equilibrium codes like Fiesta.

The read_neqdsk.pro function which reads geqdsk files into hypnotoad skips over NaNs. If Nans are present then this can cause the reading of arrays to be shifted, resulting on odd behaviour, but not raising any errors.

A quick solution is to add a check for NaNs, which then replaces the NaN with a string '+0.0' which can then be read consistently. I have tested this independently in python and it seems to work, but it may be dangerous to mask NaNs in this manner. I will put this quick fix into a separate branch for now.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions