Skip to content

Commit

Permalink
Merge pull request #28 from ArcanaFramework/develop
Browse files Browse the repository at this point in the history
Touched up ITK union types
  • Loading branch information
tclose authored Apr 24, 2024
2 parents 2faef26 + 8d0eae7 commit c707e59
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
3 changes: 2 additions & 1 deletion fileformats/medimage/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,5 +102,6 @@
MetaImage,
Nrrd,
NrrdGz,
ItkSupported,
ItkImage,
ItkAll,
)
6 changes: 5 additions & 1 deletion fileformats/medimage/itk.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,10 @@ class NrrdGz(Gzip[Nrrd]):
alternate_exts = (".nhdr.gz",)


ItkSupported = ty.Union[
ItkImage = ty.Union[
Nifti1, NiftiGz, Dicom, Bitmap, Tiff, Jpeg, GIPL, MetaImage, Nrrd, NrrdGz, PGM
]

ItkAll = ty.Union[
Nifti1, NiftiGz, Dicom, Bitmap, Tiff, Jpeg, GIPL, MetaImage, Nrrd, NrrdGz, PGM, VTK
]

0 comments on commit c707e59

Please sign in to comment.