Beispiel #1
0
 def test_load_basesignal(self):
     s = DPCBaseSignal([10, 20]).T
     assert s.axes_manager.signal_dimension == 0
     assert s.axes_manager.navigation_dimension == 1
     filename = os.path.join(self.tmpdir.name, "dpcbasesignal.hspy")
     s.save(filename)
     s_load = hs.load(filename)
     assert s.__class__ == s_load.__class__
     assert s_load.axes_manager.signal_dimension == 0
     assert s_load.axes_manager.navigation_dimension == 1
Beispiel #2
0
 def test_create(self):
     data = np.ones(shape=(2))
     DPCBaseSignal(data)