def test_detector_type(self): sfrm = BrukerFrameHeader(basename='mo_DK_Zucker2', searchpath=Path('./test-data')) self.assertEqual('CMOS-PHOTONII', sfrm.detector_type)
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)
def test_radiation_type_temperature(self): sfrm = BrukerFrameHeader(basename='mo_DK_Zucker2', searchpath=Path('./test-data')) self.assertEqual(100.0, sfrm.temperature)
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)
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)
def test_radiation_type(self): sfrm = BrukerFrameHeader(basename='mo_DK_Zucker2', searchpath=Path('./test-data')) self.assertEqual('Mo', sfrm.radiation_type)
def test_str(self): sfrm = BrukerFrameHeader(basename='apex_frame', searchpath=Path('./test-data')) self.assertEqual("{ 'ANGLES'", str(sfrm)[:10])
def frame_header(self): return BrukerFrameHeader(self.basename, self.cif.fileobj.parent)