コード例 #1
0
 def signal(self, value):
     if isinstance(value, Signal2D):
         self._signal = value
     else:
         raise WrongObjectError(str(type(value)), 'Signal2D')
コード例 #2
0
 def image(self, value):
     if isinstance(value, Image):
         self._image = value
     else:
         raise WrongObjectError(str(type(value)), 'Image')
コード例 #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')
コード例 #4
0
 def spectrum(self, value):
     if isinstance(value, Spectrum):
         self._spectrum = value
     else:
         raise WrongObjectError(str(type(value)), 'Spectrum')