gwcs.coordinate_frames.WorldAxisObjectClass¶
- class gwcs.coordinate_frames.WorldAxisObjectClass(class_object: type | str, arguments: tuple[Any, ...], keyword_arguments: dict[str, Any])¶
Bases:
NamedTupleA tuple to document the individual elements of the
world_axis_object_classesof the WCS API.Notes
world_axis_object_classeswill return a dictionary with the key beingthe name from
world_axis_object_componentsand the value being an instance of this class.
- To stay consistent with the APE 14 API, users should not access the elements
of this tuple via their names, but instead should access them via their position in the tuple.
- Variables:
class_object – The High-Level Object class for the axis or a string that is the fully qualified name of the class.
arguments – The positional arguments to be passed to the class when instantiating an object of this class. Note if
world_axis_object_componentsspecifies that the world coordinates should be passed as a positional argument, then this tuple will includeNoneas a place holder for each of the world coordinates.keyword_arguments – The keyword arguments to be passed to the class when instantiating an object of this class.
- Parameters:
Create new instance of WorldAxisObjectClass(class_object, arguments, keyword_arguments)
Attributes¶
Alias for field number 1 |
|
Alias for field number 0 |
|
Alias for field number 2 |
Methods¶
|
Return number of occurrences of value. |
|
Return first index of value. |
- WorldAxisObjectClass.count(value, /)¶
Return number of occurrences of value.
- WorldAxisObjectClass.index(value, start=0, stop=9223372036854775807, /)¶
Return first index of value.
Raises ValueError if the value is not present.