Пример #1
0
 def __init__(self, *args, **kwargs):
     if len(args) > 0 and isinstance(args[0], BaseSignal):
         # Pretend it is a hs signal, copy axes and metadata
         sdict = args[0]._to_dictionary()
         self.__class__.__init__(self, **sdict)
     else:
         BaseSignal.__init__(self, *args, **kwargs)
Пример #2
0
 def __init__(self, *args, **kwargs):
     """
     If a hyperspy signal is given, it is transformed into a ModifiedSignal.
     In that case, additional *args and **kwargs are discarded.
     """
     if len(args) > 0 and isinstance(args[0], BaseSignal):
         # Pretend it is a hs signal, copy axes and metadata
         sdict = args[0]._to_dictionary()
         self.__class__.__init__(self, **sdict)
     else:
         BaseSignal.__init__(self, *args, **kwargs)
Пример #3
0
 def __init__(self, *args, **kwargs):
     BaseSignal.__init__(self, *args, **kwargs)
Пример #4
0
 def __init__(self, *args, **kwargs):
     BaseSignal.__init__(self, *args, **kwargs)
     self.axes_manager.set_signal_dimension(2)
Пример #5
0
 def __init__(self, *args, **kwargs):
     BaseSignal.__init__(self, *args, **kwargs)
     self.cartesian = None
     self.hkls = None