YX#
- class lsst.images.YX(y: T, x: T)#
Bases:
NamedTuple,GenericA pair of per-dimension objects, ordered
(y, x).Notes#
YXis used for slices, shapes, and other 2-d pairs when the most natural ordering is(y, x). Because it is atuple, however, arithmetic operations behave as they would on acollections.abc.Sequence, not a mathematical vector (e.g. adding concatenates).See Also#
XY
Attributes Summary
The x / column object.
A tuple of the same objects in the opposite order.
The y / row object.
Methods Summary
count(value, /)Return number of occurrences of value.
index(value[, start, stop])Return first index of value.
map(func)Apply a function to both objects.
Attributes Documentation
- x: T#
The x / column object.
- xy#
A tuple of the same objects in the opposite order.
- y: T#
The y / row object.
Methods Documentation
- count(value, /)#
Return number of occurrences of value.
- index(value, start=0, stop=9223372036854775807, /)#
Return first index of value.
Raises ValueError if the value is not present.