You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The converter functions, e.g. Segment.from_elegant, Segment.from_bmad, ParticleBeam.from_astra, currently take a str argument to determine the data source. This might be limiting in certain situation if the object to convert is already loaded into memory.
Instead, one could allow the input to be given as something like Union[str, PathLike, IOBase], allowing to either pass a path or an already opened file object. This matches the behaviour of Pandas.
The text was updated successfully, but these errors were encountered:
The converter functions, e.g.
Segment.from_elegant
,Segment.from_bmad
,ParticleBeam.from_astra
, currently take astr
argument to determine the data source. This might be limiting in certain situation if the object to convert is already loaded into memory.Instead, one could allow the input to be given as something like
Union[str, PathLike, IOBase]
, allowing to either pass a path or an already opened file object. This matches the behaviour of Pandas.The text was updated successfully, but these errors were encountered: