Ejemplo n.º 1
0
 def testLoadProjectionCompareFull(self):
     nr = NexusReader(self.filename)
     projections_full = nr.loadProjection()
     projections_part = nr.loadProjection((slice(None,None), slice(None,None), slice(None,None))) 
     numpy.testing.assert_array_equal(projections_part, projections_full[:,:,:])
Ejemplo n.º 2
0
 def testLoadProjectionCompareMulti(self):
     nr = NexusReader(self.filename)
     projections_full = nr.loadProjection()
     projections_part = nr.loadProjection((slice(0,3), slice(0,135), slice(0,160))) 
     numpy.testing.assert_array_equal(projections_part, projections_full[0:3,:,:])        
Ejemplo n.º 3
0
 def testLoadProjectionCompareRandom(self):
     nr = NexusReader(self.filename)
     projections_full = nr.loadProjection()
     projections_part = nr.loadProjection((slice(1,8), slice(5,10), slice(8,20))) 
     numpy.testing.assert_array_equal(projections_part, projections_full[1:8,5:10,8:20])                
Ejemplo n.º 4
0
 def testLoadProjectionWithDimensions(self):
     nr = NexusReader(self.filename)
     projections = nr.loadProjection((slice(0,1), slice(0,135), slice(0,160)))        
     self.assertEqual(projections.shape, (1,135,160), "Loaded projection data dimensions are not correct")