Example #1
0
 def test_save_and_remove_tmp(self):
     """Test methods save, reload and remove for tmp files."""
     # Define the ROI object and save it :
     roi_custom = RoiObj('tmp_roi', vol=vol, labels=label, index=roi_index,
                         hdr=hdr)
     roi_custom.save(tmpfile=True)
     # Test reloading roi from name only :
     RoiObj('tmp_roi')
     clean_tmp()
Example #2
0
 def test_save_and_remove_tmp(self):
     """Test methods save, reload and remove for tmp files."""
     # Define the ROI object and save it :
     roi_custom = RoiObj('tmp_roi',
                         vol=vol,
                         labels=label,
                         index=roi_index,
                         hdr=hdr)
     roi_custom.save(tmpfile=True)
     # Test reloading roi from name only :
     RoiObj('tmp_roi')
     clean_tmp()
Example #3
0
 def test_remove(self):
     """Test function remove."""
     BrainObj('Custom').remove()
     clean_tmp()
Example #4
0
 def test_remove(self):
     """Test function remove."""
     v_obj = VolumeObj('GG-853-GM-0.7mm')
     v_obj.remove()
     clean_tmp()