Skip to content

FieldMesh saved cannot be reopened #123

Description

@ColwynGulliford

I have several FieldMesh h5 files generated by Bmad via write bmad. When loading these maps into Python via FieldMesh initialization for the first time, there is a warning:

Nonstandard attr: componentFieldScale [1.]
Nonstandard attr: interpolationOrder [1]

Saving a new map via FieldMesh.write(...) and then trying to reload the new map causes an error:

Image

Attached is a minimal working example using a Cornell injector solenoid field map file.

pmd_mwe.zip

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions