Пример #1
0
 def test_detector_type(self):
     sfrm = BrukerFrameHeader(basename='mo_DK_Zucker2',
                              searchpath=Path('./test-data'))
     self.assertEqual('CMOS-PHOTONII', sfrm.detector_type)
Пример #2
0
 def test_kilovolts_milliamps(self):
     sfrm = BrukerFrameHeader(basename='mo_DK_Zucker2',
                              searchpath=Path('./test-data'))
     self.assertEqual(50.0, sfrm.kilovolts)
     self.assertEqual(1.4, sfrm.milliamps)
Пример #3
0
 def test_radiation_type_temperature(self):
     sfrm = BrukerFrameHeader(basename='mo_DK_Zucker2',
                              searchpath=Path('./test-data'))
     self.assertEqual(100.0, sfrm.temperature)
Пример #4
0
 def test_program(self):
     sfrm = BrukerFrameHeader(basename='mo_DK_Zucker2',
                              searchpath=Path('./test-data'))
     self.assertEqual('BIS V6.2.10/2018-10-02', sfrm.program)
Пример #5
0
 def test_measure_date(self):
     sfrm = BrukerFrameHeader(basename='mo_DK_Zucker2',
                              searchpath=Path('./test-data'))
     self.assertEqual('15-Apr-2019 13:32:45', sfrm.measure_date)
Пример #6
0
 def test_radiation_type(self):
     sfrm = BrukerFrameHeader(basename='mo_DK_Zucker2',
                              searchpath=Path('./test-data'))
     self.assertEqual('Mo', sfrm.radiation_type)
Пример #7
0
 def test_str(self):
     sfrm = BrukerFrameHeader(basename='apex_frame',
                              searchpath=Path('./test-data'))
     self.assertEqual("{ 'ANGLES'", str(sfrm)[:10])
Пример #8
0
 def frame_header(self):
     return BrukerFrameHeader(self.basename, self.cif.fileobj.parent)