Positions¶
- class Positions(x, y, z)¶
Named tuple of arrays
- Attributes:
- x, y, zarray_like
1D arrays of Cartesian coordinates
Attributes
_field_defaults
_fields
Alias for field number 0
Alias for field number 1
Alias for field number 2
Methods
__getitem__
(key, /)Return self[key].
_asdict
()Return a new dict which maps field names to their values.
_make
(iterable)Make a new Positions object from a sequence or iterable
_replace
(**kwds)Return a new Positions object replacing specified fields with new values
count
(value, /)Return number of occurrences of value.
index
(value[, start, stop])Return first index of value.
- __getitem__(key, /)¶
Return self[key].
- count(value, /)¶
Return number of occurrences of value.
- index(value, start=0, stop=sys.maxsize, /)¶
Return first index of value.
Raises ValueError if the value is not present.
- x¶
Alias for field number 0
- y¶
Alias for field number 1
- z¶
Alias for field number 2