class skued.RingSelection(shape, center, inner_radius, outer_radius)

Ring selection mask, i.e. 2-torus.

New in version 2.0.2.

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

  • center (2-tuple of ints) – Center (row, col) of the selection.

  • inner_radius (float) – Inner radius of the selection.

  • outer_radius (float) – Outer radius of the selection.

__init__(shape, center, inner_radius, outer_radius)


__array__(*args, **kwargs)

Cast as a NumPy array.

__delattr__(name, /)

Implement delattr(self, name).


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.


Return hash(self).

__init__(shape, center, inner_radius, ...)


This method is called when a class is subclassed.

__le__(value, /)

Return self<=value.

__lt__(value, /)

Return self<value.

__ne__(value, /)

Return self!=value.



Helper for pickle.

__reduce_ex__(protocol, /)

Helper for pickle.


Return repr(self).

__setattr__(name, value, /)

Implement setattr(self, name, value).


Size of object in memory, in bytes.


Return str(self).


Abstract classes can override this to customize issubclass().


Toroidal patch.






Returns the array bounding box.