Esempio n. 1
0
 def test_that_can_set_the_sample_geometry(self):
     state_gui_model = StateGuiModel({"test": [1]})
     state_gui_model.sample_width = 1.2
     state_gui_model.sample_height = 1.6
     state_gui_model.sample_thickness = 1.8
     state_gui_model.z_offset = 1.78
     state_gui_model.sample_shape = SampleShape.FlatPlate
     self.assertTrue(state_gui_model.sample_width == 1.2)
     self.assertTrue(state_gui_model.sample_height == 1.6)
     self.assertTrue(state_gui_model.sample_thickness == 1.8)
     self.assertTrue(state_gui_model.z_offset == 1.78)
     self.assertTrue(state_gui_model.sample_shape is SampleShape.FlatPlate)
Esempio n. 2
0
 def test_that_can_set_the_sample_geometry(self):
     state_gui_model = StateGuiModel(AllStates())
     state_gui_model.sample_width = 1.2
     state_gui_model.sample_height = 1.6
     state_gui_model.sample_thickness = 1.8
     state_gui_model.z_offset = 1.78
     state_gui_model.sample_shape = SampleShape.FLAT_PLATE
     self.assertEqual(state_gui_model.sample_width, 1.2)
     self.assertEqual(state_gui_model.sample_height, 1.6)
     self.assertEqual(state_gui_model.sample_thickness, 1.8)
     self.assertEqual(state_gui_model.z_offset, 1.78)
     self.assertEqual(state_gui_model.sample_shape, SampleShape.FLAT_PLATE)
Esempio n. 3
0
 def test_that_can_set_the_sample_geometry(self):
     state_gui_model = StateGuiModel({"test": [1]})
     state_gui_model.sample_width = 1.2
     state_gui_model.sample_height = 1.6
     state_gui_model.sample_thickness = 1.8
     state_gui_model.z_offset = 1.78
     state_gui_model.sample_shape = SampleShape.Cuboid
     self.assertTrue(state_gui_model.sample_width == 1.2)
     self.assertTrue(state_gui_model.sample_height == 1.6)
     self.assertTrue(state_gui_model.sample_thickness == 1.8)
     self.assertTrue(state_gui_model.z_offset == 1.78)
     self.assertTrue(state_gui_model.sample_shape is SampleShape.Cuboid)