get_dims

sherpa.astro.ui.get_dims(id=None, filter=False)

Return the dimensions of the data set.

Parameters:
  • id (int or str, optional) – The data set. If not given then the default identifier is used, as returned by get_default_id.
  • filter (bool, optional) – If True then apply any filter to the data set before returning the dimensions. The default is False.
Returns:

dims

Return type:

a tuple of int

See also

ignore()
Exclude data from the fit.
sherpa.astro.ui.ignore2d()
Exclude a spatial region from an image.
notice()
Include data in the fit.
sherpa.astro.ui.notice2d()
Include a spatial region of an image.