Skip to content

Commit 191fc11

Browse files
authored
Merge pull request #18 from tclose/pydra-refactor
Updated syntax to match pydra refactor
2 parents c1f0c3f + f20f267 commit 191fc11

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

.github/workflows/ci-cd.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ jobs:
4040
- name: Install development Pydra and fileformats-medimage
4141
run: |
4242
pip uninstall pydra fileformats-medimage -y
43-
pip install --no-deps git+https://github.com/nipype/pydra.git@new-syntax
44-
pip install --no-deps git+https://github.com/arcanaframework/fileformats-medimage.git@pydra-syntax-changes
43+
pip install --no-deps git+https://github.com/nipype/pydra.git@develop
44+
pip install --no-deps git+https://github.com/arcanaframework/fileformats-medimage.git@updated-pydra-imports
4545
- name: Test with pytest
4646
run: |
4747
pytest -sv --cov pydra.tasks.$SUBPACKAGE --cov-report xml

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)