diff options
| author | Edoardo Pasca <edo.paskino@gmail.com> | 2019-05-09 14:34:07 +0100 | 
|---|---|---|
| committer | Edoardo Pasca <edo.paskino@gmail.com> | 2019-05-09 14:34:07 +0100 | 
| commit | c242f21287cfe04995aadb5140f307e8777e3a9b (patch) | |
| tree | ec98dae12f8936172b6d8078f87619518bad7283 | |
| parent | b377d100af892052c86c21ebac3b3ab29918b080 (diff) | |
| download | framework-c242f21287cfe04995aadb5140f307e8777e3a9b.tar.gz framework-c242f21287cfe04995aadb5140f307e8777e3a9b.tar.bz2 framework-c242f21287cfe04995aadb5140f307e8777e3a9b.tar.xz framework-c242f21287cfe04995aadb5140f307e8777e3a9b.zip | |
reduce downloads on test
| -rwxr-xr-x | Wrappers/Python/data/resolution_chart.tiff | bin | 0 -> 65670 bytes | |||
| -rwxr-xr-x | Wrappers/Python/test/test_NexusReader.py | 26 | 
2 files changed, 13 insertions, 13 deletions
| diff --git a/Wrappers/Python/data/resolution_chart.tiff b/Wrappers/Python/data/resolution_chart.tiffBinary files differ new file mode 100755 index 0000000..d09cef3 --- /dev/null +++ b/Wrappers/Python/data/resolution_chart.tiff diff --git a/Wrappers/Python/test/test_NexusReader.py b/Wrappers/Python/test/test_NexusReader.py index 55543ba..a498d71 100755 --- a/Wrappers/Python/test/test_NexusReader.py +++ b/Wrappers/Python/test/test_NexusReader.py @@ -21,67 +21,67 @@ class TestNexusReader(unittest.TestCase):      def tearDown(self):          os.remove(self.filename) - -    def testGetDimensions(self): +    def testAll(self): +    # def testGetDimensions(self):          nr = NexusReader(self.filename)          self.assertEqual(nr.get_sinogram_dimensions(), (135, 91, 160), "Sinogram dimensions are not correct") -    def testGetProjectionDimensions(self): +    # def testGetProjectionDimensions(self):          nr = NexusReader(self.filename)          self.assertEqual(nr.get_projection_dimensions(), (91,135,160), "Projection dimensions are not correct")         -    def testLoadProjectionWithoutDimensions(self): +    # def testLoadProjectionWithoutDimensions(self):          nr = NexusReader(self.filename)          projections = nr.load_projection()                  self.assertEqual(projections.shape, (91,135,160), "Loaded projection data dimensions are not correct")         -    def testLoadProjectionWithDimensions(self): +    # def testLoadProjectionWithDimensions(self):          nr = NexusReader(self.filename)          projections = nr.load_projection((slice(0,1), slice(0,135), slice(0,160)))                  self.assertEqual(projections.shape, (1,135,160), "Loaded projection data dimensions are not correct")         -    def testLoadProjectionCompareSingle(self): +    # def testLoadProjectionCompareSingle(self):          nr = NexusReader(self.filename)          projections_full = nr.load_projection()          projections_part = nr.load_projection((slice(0,1), slice(0,135), slice(0,160)))           numpy.testing.assert_array_equal(projections_part, projections_full[0:1,:,:]) -    def testLoadProjectionCompareMulti(self): +    # def testLoadProjectionCompareMulti(self):          nr = NexusReader(self.filename)          projections_full = nr.load_projection()          projections_part = nr.load_projection((slice(0,3), slice(0,135), slice(0,160)))           numpy.testing.assert_array_equal(projections_part, projections_full[0:3,:,:]) -    def testLoadProjectionCompareRandom(self): +    # def testLoadProjectionCompareRandom(self):          nr = NexusReader(self.filename)          projections_full = nr.load_projection()          projections_part = nr.load_projection((slice(1,8), slice(5,10), slice(8,20)))           numpy.testing.assert_array_equal(projections_part, projections_full[1:8,5:10,8:20])                 -    def testLoadProjectionCompareFull(self): +    # def testLoadProjectionCompareFull(self):          nr = NexusReader(self.filename)          projections_full = nr.load_projection()          projections_part = nr.load_projection((slice(None,None), slice(None,None), slice(None,None)))           numpy.testing.assert_array_equal(projections_part, projections_full[:,:,:]) -    def testLoadFlatCompareFull(self): +    # def testLoadFlatCompareFull(self):          nr = NexusReader(self.filename)          flats_full = nr.load_flat()          flats_part = nr.load_flat((slice(None,None), slice(None,None), slice(None,None)))           numpy.testing.assert_array_equal(flats_part, flats_full[:,:,:]) -    def testLoadDarkCompareFull(self): +    # def testLoadDarkCompareFull(self):          nr = NexusReader(self.filename)          darks_full = nr.load_dark()          darks_part = nr.load_dark((slice(None,None), slice(None,None), slice(None,None)))           numpy.testing.assert_array_equal(darks_part, darks_full[:,:,:]) -    def testProjectionAngles(self): +    # def testProjectionAngles(self):          nr = NexusReader(self.filename)          angles = nr.get_projection_angles()          self.assertEqual(angles.shape, (91,), "Loaded projection number of angles are not correct")         -    def test_get_acquisition_data_subset(self): +    # def test_get_acquisition_data_subset(self):          nr = NexusReader(self.filename)          key = nr.get_image_keys()          sl = nr.get_acquisition_data_subset(0,10) | 
