ISpectrum#

This is a Python binding to the C++ class Mantid::API::ISpectrum.

class mantid.api.ISpectrum#
addDetectorID((ISpectrum)self, (int)det_id) → None :#

Add a detector ID to this spectrum

clearDetectorIDs((ISpectrum)self) → None :#

Clear the set of detector IDs

getDetectorIDs((ISpectrum)self) → mantid.kernel._kernel.std_set_int :#

Returns a list of detector IDs for this spectrum

getSpectrumNo((ISpectrum)self) → int :#

Returns the spectrum number of this spectrum

hasDetectorID((ISpectrum)self, (int)det_id) → bool :#

Returns True if the spectrum contain the given spectrum number

hasDx((ISpectrum)self) → bool :#

Returns True if the spectrum uses the DX (X Error) array, else False.

setDetectorID((ISpectrum)self, (int)det_id) → None :#

Set the given ID has the only

setSpectrumNo((ISpectrum)self, (int)num) → None :#

Set the spectrum number for this spectrum