def test_load_signal1d(self): s = DPCSignal1D(np.ones((2, 10))) assert s.axes_manager.signal_dimension == 1 assert s.axes_manager.navigation_dimension == 1 filename = os.path.join(self.tmpdir.name, "dpcsignal1d.hspy") s.save(filename) s_load = pxm.load(filename) assert s.__class__ == s_load.__class__ assert s_load.axes_manager.signal_dimension == 1 assert s_load.axes_manager.navigation_dimension == 1
def test_create(self): data = np.ones(shape=(2, 10)) DPCSignal1D(data)
def test_get_bivariate_histogram_1d(self): s = DPCSignal1D(np.random.random((2, 10))) s.get_bivariate_histogram()