Skip to content

Commit e941240

Browse files
committed
updated syntax to match pydra refactor
1 parent c1f0c3f commit e941240

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

pydra/tasks/dcm2niix/utils.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11
from pathlib import Path
22
import typing as ty
3-
from pydra.engine.specs import ShellDef, ShellOutputs
43
from fileformats.application import Json
54
from fileformats.medimage import DicomDir, Nifti1, NiftiGz, Bvec, Bval
6-
from pydra.design import shell
7-
5+
from pydra.compose import shell
86

97
FS = ty.TypeVar("FS", bound=Nifti1 | NiftiGz | Json | Bval | Bvec)
108

@@ -98,7 +96,7 @@ def dcm2niix_out_files(out_dir: Path, filename: str) -> list[str]:
9896

9997

10098
@shell.define
101-
class Dcm2Niix(ShellDef["Dcm2Niix.Outputs"]):
99+
class Dcm2Niix(shell.Task["Dcm2Niix.Outputs"]):
102100
"""
103101
Example
104102
-------
@@ -292,7 +290,7 @@ class Dcm2Niix(ShellDef["Dcm2Niix.Outputs"]):
292290
version: bool = shell.arg(default=False, argstr="--version", help="report version")
293291
xml: bool = shell.arg(default=False, argstr="--xml", help="Slicer format features")
294292

295-
class Outputs(ShellOutputs):
293+
class Outputs(shell.Outputs):
296294
out_file: Nifti1 | NiftiGz = shell.out(
297295
help=(
298296
"output NIfTI image. If multiple nifti files are created (e.g. for "

0 commit comments

Comments
 (0)