def signal(self, value): if isinstance(value, Signal2D): self._signal = value else: raise WrongObjectError(str(type(value)), 'Signal2D')
def image(self, value): if isinstance(value, Image): self._image = value else: raise WrongObjectError(str(type(value)), 'Image')
def signal(self, value): from hyperspy._signals.signal1d import Signal1D if isinstance(value, Signal1D): self._signal = value else: raise WrongObjectError(str(type(value)), 'Signal1D')
def spectrum(self, value): if isinstance(value, Spectrum): self._spectrum = value else: raise WrongObjectError(str(type(value)), 'Spectrum')