skued.RectSelection

class skued.RectSelection(shape, r1, r2, c1, c2)

Rectangular selection mask. Note that rectangular bounds are inclusive, contrary to normal numpy index selections.

New in version 2.0.2.

Parameters:
  • shape (2-tuple) – Shape of the scattering patterns from which data will be selected.

  • r1 (int) – Row indices that bound the selection, inclusively.

  • r2 (int) – Row indices that bound the selection, inclusively.

  • c1 (int) – Column indices that bound the selection, inclusively.

  • c2 (int) – Column indices that bound the selection, inclusively.

__init__(shape, r1, r2, c1, c2)

Methods

__array__(*args, **kwargs)

Cast as a NumPy array.

__delattr__(name, /)

Implement delattr(self, name).

__dir__()

Default dir() implementation.

__eq__(value, /)

Return self==value.

__format__(format_spec, /)

Default object formatter.

__ge__(value, /)

Return self>=value.

__getattribute__(name, /)

Return getattr(self, name).

__gt__(value, /)

Return self>value.

__hash__()

Return hash(self).

__init__(shape, r1, r2, c1, c2)

__init_subclass__

This method is called when a class is subclassed.

__le__(value, /)

Return self<=value.

__lt__(value, /)

Return self<value.

__ne__(value, /)

Return self!=value.

__new__(**kwargs)

__reduce__()

Helper for pickle.

__reduce_ex__(protocol, /)

Helper for pickle.

__repr__()

Return repr(self).

__setattr__(name, value, /)

Implement setattr(self, name, value).

__sizeof__()

Size of object in memory, in bytes.

__str__()

Return str(self).

__subclasshook__

Abstract classes can override this to customize issubclass().

mpatch(*args, **kwargs)

Matplotlib patch associated with this selection.

Attributes

__abstractmethods__

__annotations__

_abc_impl

bounding_box

Returns the array bounding box.