imas.ids_coordinates.IDSCoordinate¶
- class imas.ids_coordinates.IDSCoordinate(coordinate_spec: str)¶
Bases:
objectClass representing a coordinate reference from the DD.
Example
Coordinates are an index:
1...N: any number of items allowed1...3: max 3 items allowed
Coordinates refer to other quantities:
time: refers to thetimequantity in the IDS toplevelprofiles_1d(itime)/time: refers to thetimequantity in theprofiles_1dIDSStructArray with (dummy) index itime
Coordinates specify alternatives:
distribution(i1)/profiles_2d(itime)/grid/r OR distribution(i1)/profiles_2d(itime)/grid/rho_tor_norm: coordinate can berorrho_tor_norm(only one may be filled)coherent_wave(i1)/beam_tracing(itime)/beam(i2)/length OR 1...1: either uselengthas coordinate, or this dimension must have size one.
Methods
__init__(coordinate_spec)format_refs(element)Return a comma-separated list of paths representing self.references.
Attributes
Exact size of this dimension.
A tuple paths that this coordinate refers to.
True iff this coordinate specifies a validation rule.
True iff exclusive alternative coordinates are specified.
True iff this coordinate refers to
time.- format_refs(element: IDSBase) str¶
Return a comma-separated list of paths representing self.references.
Useful when constructing error messages to users.
- references : tuple[imas.ids_path.IDSPath]¶
A tuple paths that this coordinate refers to.