Example #1
0
 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()
Example #2
0
 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
Example #3
0
 def test_simple(self):
     sublattice = dd.get_simple_cubic_sublattice()
     signal = sublattice.signal
     assert_array_equal(sublattice.image, signal.data)
Example #4
0
 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
Example #5
0
 def setup_method(self):
     self.sublattice = dd.get_simple_cubic_sublattice()
Example #6
0
 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()