Skip to content

Commit

Permalink
relax nibabel requirement
Browse files Browse the repository at this point in the history
  • Loading branch information
nkaenzig committed Nov 26, 2024
1 parent 4129e34 commit b1208ad
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 12 deletions.
18 changes: 9 additions & 9 deletions pdm.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ file = "LICENSE"
[project.optional-dependencies]
vision = [
"h5py>=3.10.0",
"nibabel>=5.2.0",
"nibabel>=4.0.1",
"opencv-python-headless>=4.9.0.80",
"timm>=1.0.9",
"torchvision>=0.17.0",
Expand All @@ -72,7 +72,7 @@ vision = [
]
all = [
"h5py>=3.10.0",
"nibabel>=5.2.0",
"nibabel>=4.0.1",
"opencv-python-headless>=4.9.0.80",
"timm>=1.0.9",
"torchvision>=0.17.0",
Expand Down
1 change: 0 additions & 1 deletion src/eva/vision/utils/io/nifti.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ def save_array_as_nifti(
dtype: The data type to save the image.
"""
nifti_image = nib.Nifti1Image(array, affine=np.eye(4), dtype=dtype) # type: ignore
nifti_image.header.get_xyzt_units()
nifti_image.to_filename(filename)


Expand Down

0 comments on commit b1208ad

Please sign in to comment.