Skip to content

Commit

Permalink
fix: Added .gz extension for writing images
Browse files Browse the repository at this point in the history
  • Loading branch information
Karol-G committed Nov 18, 2024
1 parent 0a42b49 commit 829bdc7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/napari_nifti/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
__version__ = "0.0.16"
__version__ = "0.0.17"

from ._reader import napari_get_reader
from ._writer import write_single_image
Expand Down
6 changes: 3 additions & 3 deletions src/napari_nifti/napari.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ contributions:
readers:
- command: napari-nifti.get_reader
accepts_directories: false
filename_patterns: [ '*.nii', '*.nii.gz', '*.nrrd']
filename_patterns: [ '*.gz', '*.nii', '*.nii.gz', '*.nrrd']
writers:
- command: napari-nifti.write_single_image
layer_types: ['image']
filename_extensions: [ '*.nii', '*.nii.gz', '*.nrrd' ]
filename_extensions: [ '*.gz', '*.nii', '*.nii.gz', '*.nrrd' ]
- command: napari-nifti.write_single_image
layer_types: [ 'labels' ]
filename_extensions: [ '*.nii', '*.nii.gz', '*.nrrd' ]
filename_extensions: [ '*.gz', '*.nii', '*.nii.gz', '*.nrrd' ]

0 comments on commit 829bdc7

Please sign in to comment.