Пример #1
0
 def test_detector_type(self):
     p4p = P4PFile(basename='DK_Zucker2', searchpath=Path('./test-data'))
     self.assertEqual(['0.126', '0.202', '0.303'], p4p.crystal_size)
Пример #2
0
 def test_kilovolts_milliamps(self):
     p4p = P4PFile(basename='DK_Zucker2', searchpath=Path('./test-data'))
     self.assertEqual([7.7133, 8.6559, 10.8082, 90.0, 102.9627, 90.0], p4p.cell)
     self.assertEqual([0.0011, 0.002, 0.0024, 0.0, 0.0089, 0.0, 0.228], p4p.cellsd)
Пример #3
0
 def test_radiation_type_temperature(self):
     p4p = P4PFile(basename='DK_Zucker2', searchpath=Path('./test-data'))
     self.assertEqual('colourless', p4p.crystal_color)
Пример #4
0
 def test_program(self):
     p4p = P4PFile(basename='DK_Zucker2', searchpath=Path('./test-data'))
     self.assertEqual('C12H22O11', p4p.chem)
Пример #5
0
 def test_measure_date(self):
     p4p = P4PFile(basename='DK_Zucker2', searchpath=Path('./test-data'))
     self.assertEqual('DK_Zucker2_0m.p4p', p4p.filename.name)
Пример #6
0
 def test_radiation_type(self):
     p4p = P4PFile(basename='DK_Zucker2', searchpath=Path('./test-data'))
     self.assertEqual('Mo', p4p.radiation_type)
Пример #7
0
 def test_str(self):
     p4p = P4PFile(basename='DK_Zucker2', searchpath=Path('./test-data'))
     self.assertEqual(100, p4p.temperature)
Пример #8
0
 def p4p(self):
     return P4PFile(self.basename, self.cif.fileobj.parent)