def test_get_projection_angles_from_logfile(self):
     images = generate_images()
     images.log_file = generate_logfile()
     expected = np.deg2rad(np.asarray([0.0, 0.3152, 0.6304, 0.9456, 1.2608, 1.576, 1.8912, 2.2064, 2.5216, 2.8368]))
     actual = images.projection_angles(360.0)
     self.assertEqual(len(actual.value), len(expected))
     np.testing.assert_equal(actual.value, expected)
예제 #2
0
 def test_metadata_gets_updated_with_logfile(self):
     images = generate_images()
     images.log_file = generate_logfile()
     self.assertEqual(images.log_file.source_file,
                      images.metadata[const.LOG_FILE])