Skip to content

Element types in BDSim survey outputs #88

@untitled-angoose

Description

@untitled-angoose

The element "Type" column is not filled for rmatrix, thinrmatrix and rfcavity (fringe field) elements in BDSim survey outputs (see attached files).

RFCavityTests.gmad.txt
TestBDSimSurvey.dat.txt

This disrupts code designed to read from BDSim survey files, such as pybdsim.Data.Load, as they do not parse the unfilled column correctly.

I think a simple fix would be to make the GetType method return "None" or NaN for a BDSim element that has no type set - so the "Type" survey column is always filled.

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