Skip to content

Commit

Permalink
fix: Update xor type, remove deprecation from output
Browse files Browse the repository at this point in the history
  • Loading branch information
effigies committed Jul 19, 2024
1 parent 30dfc5b commit 785c40f
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions niworkflows/interfaces/images.py
Original file line number Diff line number Diff line change
Expand Up @@ -380,10 +380,11 @@ def _run_interface(self, runtime):
class _TemplateDimensionsInputSpec(BaseInterfaceInputSpec):
anat_type = traits.Enum("T1w", "T2w", usedefault=True, desc="Anatomical image type")
anat_list = InputMultiObject(
File(exists=True), xor="t1w_list", desc="input anatomical images"
File(exists=True), xor=["t1w_list"], desc="input anatomical images"
)
t1w_list = InputMultiObject(
xor="anat_list",
File(exists=True),
xor=["anat_list"],
deprecated="1.14.0",
new_name="anat_list",
)
Expand All @@ -393,7 +394,7 @@ class _TemplateDimensionsInputSpec(BaseInterfaceInputSpec):


class _TemplateDimensionsOutputSpec(TraitedSpec):
t1w_valid_list = OutputMultiObject(exists=True, deprecated="1.14.0", desc="valid T1w images")
t1w_valid_list = OutputMultiObject(exists=True, desc="valid T1w images")
anat_valid_list = OutputMultiObject(exists=True, desc="valid anatomical images")
target_zooms = traits.Tuple(
traits.Float, traits.Float, traits.Float, desc="Target zoom information"
Expand Down

0 comments on commit 785c40f

Please sign in to comment.