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