I am trying to use the sample script Documentation/Nightly/ScriptRepository - Slicer Wiki
to disable compression for all volume types by putting this example to my .slicerrc.py
#set the default volume storage to not compress by default
defaultVolumeStorageNode = slicer.vtkMRMLVolumeArchetypeStorageNode()
defaultVolumeStorageNode.SetUseCompression(0)
slicer.mrmlScene.AddDefaultNode(defaultVolumeStorageNode)
logging.info(“Volume nodes will be stored uncompressed by default”)
But this doesn’t disable compression for segmentation nodes (download MrHead.nrrd, create a segment and see in the save as dialog box that while compression is unchecked for MRHead.nrrd, it is still enabled for _seg.nrrd segmentation volume).
There is another snippet that disables compression specifically for segmentations,
#set the default volume storage to not compress by default
defaultVolumeStorageNode = slicer.vtkMRMLSegmentationStorageNode()
defaultVolumeStorageNode.SetUseCompression(0)
slicer.mrmlScene.AddDefaultNode(defaultVolumeStorageNode)
logging.info("Segmentation nodes will be stored uncompressed
But I want to do it for both volumes and segmentation, is that possible?