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)
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)
def __init__(self, *args, **kwargs): BaseSignal.__init__(self, *args, **kwargs)
def __init__(self, *args, **kwargs): BaseSignal.__init__(self, *args, **kwargs) self.axes_manager.set_signal_dimension(2)
def __init__(self, *args, **kwargs): BaseSignal.__init__(self, *args, **kwargs) self.cartesian = None self.hkls = None