def test_get_simple_cubic_sublattice(self): s0 = dd.get_simple_cubic_sublattice() s0.plot() s1 = dd.get_simple_cubic_sublattice(image_noise=False) s1.plot() s2 = dd.get_simple_cubic_sublattice(image_noise=True) s2.plot()
def test_pixel_size(self): sublattice = dd.get_simple_cubic_sublattice() sublattice.pixel_size = 0.5 signal = sublattice.signal assert signal.axes_manager.signal_axes[0].scale == 0.5 assert signal.axes_manager.signal_axes[1].scale == 0.5
def test_simple(self): sublattice = dd.get_simple_cubic_sublattice() signal = sublattice.signal assert_array_equal(sublattice.image, signal.data)
def test_simple(self): sublattice = dd.get_simple_cubic_sublattice() results = sublattice.integrate_column_intensity() assert len(results[0]) == len(sublattice.x_position) assert sublattice.image.shape == results[1].data.shape assert sublattice.image.shape == results[2].shape
def setup_method(self): self.sublattice = dd.get_simple_cubic_sublattice()
def setup_method(self): sublattice = dd.get_simple_cubic_sublattice() self.x, self.y = sublattice.x_position, sublattice.y_position self.s = sublattice.get_atom_list_on_image()