File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -502,6 +502,7 @@ class DerivativesDataSink(SimpleInterface):
502
502
_allowed_entities = set (_config_entities )
503
503
_standard_spaces = STANDARD_SPACES
504
504
_file_patterns = BIDS_DERIV_PATTERNS
505
+ _default_dtypes = DEFAULT_DTYPES
505
506
506
507
def __init__ (self , allowed_entities = None , out_path_base = None , ** inputs ):
507
508
"""Initialize the SimpleInterface and extend inputs with custom entities."""
@@ -651,7 +652,7 @@ def _run_interface(self, runtime):
651
652
is_nifti = out_file .name .endswith (
652
653
(".nii" , ".nii.gz" )
653
654
) 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 ]
655
656
if is_nifti and any ((self .inputs .check_hdr , data_dtype )):
656
657
nii = nb .load (orig_file )
657
658
You can’t perform that action at this time.
0 commit comments