Ejemplo n.º 1
0
 def testSingleRB5Azi(self):
     rb52odim.singleRB5(self.GOOD_RB5_AZI,out_fullfile=self.NEW_H5_AZI)
     new_rio = _raveio.open(self.NEW_H5_AZI)
     ref_rio = _raveio.open(self.REF_H5_AZI)
     self.assertTrue(new_rio.objectType is _rave.Rave_ObjectType_SCAN)
     new_scan, ref_scan = new_rio.object, ref_rio.object
     validateTopLevel(self, new_scan, ref_scan)
     validateScan(self, new_scan, ref_scan)
     os.remove(self.NEW_H5_AZI)
Ejemplo n.º 2
0
 def testSingleRB5Vol(self):
     rb52odim.singleRB5(self.GOOD_RB5_VOL,out_fullfile=self.NEW_H5_VOL)
     new_rio = _raveio.open(self.NEW_H5_VOL)
     ref_rio = _raveio.open(self.REF_H5_VOL)
     self.assertTrue(new_rio.objectType is _rave.Rave_ObjectType_PVOL)
     new_pvol, ref_pvol = new_rio.object, ref_rio.object
     self.assertEquals(new_pvol.getNumberOfScans(), ref_pvol.getNumberOfScans())
     validateTopLevel(self, new_pvol, ref_pvol)
     for i in range(new_pvol.getNumberOfScans()):
         new_scan = new_pvol.getScan(i)
         ref_scan = ref_pvol.getScan(i)
         validateScan(self, new_scan, ref_scan)
     os.remove(self.NEW_H5_VOL)