Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ description = "pydra-tasks-mrtrix3 contains Pydra task specifications for MRtrix
readme = "README.rst"
requires-python = ">=3.11"
dependencies = [
"fileformats-medimage_mrtrix3 >=3.0.4a5",
"fileformats-vendor-mrtrix3 >=3.0.4a5",
"numpy",
"pydra>=1.0a2"
]
Expand Down Expand Up @@ -53,7 +53,7 @@ test = [
"pytest-xdist",
"pytest-rerunfailures",
"codecov",
"fileformats-medimage_mrtrix3-extras",
"fileformats-vendor-mrtrix3-extras",
]

[tool.hatch.version]
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
from ._version import __version__

__all__ = [
"__version__",
]
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
from .._version import __version__

from .image import ImageFormat, ImageFormatGz, ImageHeader, ImageDataFile
from .in_out import ImageIn, ImageOut
from .dwi import (
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from fileformats.core import from_mime
from fileformats.generic import DirectoryOf
from fileformats.vendor.mrtrix3.medimage import ImageFormatGz as MifGz


Expand All @@ -8,3 +9,7 @@ def test_mif_gz_mime_roundtrip():

def test_mif_gz_mime_like_roundtrip():
assert MifGz is from_mime(MifGz.mime_like)


def test_mif_gz_directory_of_mime_like_roundtrip():
assert DirectoryOf[MifGz] is from_mime(DirectoryOf[MifGz].mime_like)