Skip to content

Commit a318b5e

Browse files
committed
Move DEFAULT_DTYPES as well.
1 parent 94c5c43 commit a318b5e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

niworkflows/interfaces/bids.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -502,6 +502,7 @@ class DerivativesDataSink(SimpleInterface):
502502
_allowed_entities = set(_config_entities)
503503
_standard_spaces = STANDARD_SPACES
504504
_file_patterns = BIDS_DERIV_PATTERNS
505+
_default_dtypes = DEFAULT_DTYPES
505506

506507
def __init__(self, allowed_entities=None, out_path_base=None, **inputs):
507508
"""Initialize the SimpleInterface and extend inputs with custom entities."""
@@ -651,7 +652,7 @@ def _run_interface(self, runtime):
651652
is_nifti = out_file.name.endswith(
652653
(".nii", ".nii.gz")
653654
) and not out_file.name.endswith((".dtseries.nii", ".dtseries.nii.gz"))
654-
data_dtype = self.inputs.data_dtype or DEFAULT_DTYPES[self.inputs.suffix]
655+
data_dtype = self.inputs.data_dtype or self._default_dtypes[self.inputs.suffix]
655656
if is_nifti and any((self.inputs.check_hdr, data_dtype)):
656657
nii = nb.load(orig_file)
657658

0 commit comments

Comments
 (0)