Skip to content

Commit

Permalink
DOC: Fix segmentation example in script repository
Browse files Browse the repository at this point in the history
Fix comment format, update variable names, and add missing closing bracket in 'Change file type for saving for existing nodes' section  of script repository.
  • Loading branch information
MujassimJamal authored and lassoan committed Mar 4, 2024
1 parent c7fe865 commit d89d7fe
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions Docs/developer_guide/script_repository/gui.md
Expand Up @@ -260,7 +260,7 @@ for volumeNode in volumeNodes:
To set all volume nodes to save uncompressed by default (add this to [slicerrc.py file](/user_guide/settings.md#application-startup-file) so it takes effect for the whole session):

```python
#set the default volume storage to not compress by default
# Set the default volume storage to not compress by default
defaultVolumeStorageNode = slicer.vtkMRMLVolumeArchetypeStorageNode()
defaultVolumeStorageNode.SetUseCompression(0)
slicer.mrmlScene.AddDefaultNode(defaultVolumeStorageNode)
Expand All @@ -270,11 +270,11 @@ logging.info("Volume nodes will be stored uncompressed by default")
Same thing as above, but applied to all segmentations instead of volumes:

```python
#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
# Set the default segmentation storage to not compress by default
defaultSegmentationStorageNode = slicer.vtkMRMLSegmentationStorageNode()
defaultSegmentationStorageNode.SetUseCompression(0)
slicer.mrmlScene.AddDefaultNode(defaultSegmentationStorageNode)
logging.info("Segmentation nodes will be stored uncompressed by default")
```

## Module selection
Expand Down

0 comments on commit d89d7fe

Please sign in to comment.