File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -630,7 +630,9 @@ def _run_interface(self, runtime):
630
630
631
631
new_compression = False
632
632
if is_nifti :
633
- new_compression = os .fspath (orig_file ).endswith (".gz" ) ^ os .fspath (dest_file ).endswith (".gz" )
633
+ new_compression = (
634
+ os .fspath (orig_file ).endswith (".gz" ) ^ os .fspath (dest_file ).endswith (".gz" )
635
+ )
634
636
635
637
data_dtype = self .inputs .data_dtype or self ._default_dtypes [self .inputs .suffix ]
636
638
if is_nifti and any ((self .inputs .check_hdr , data_dtype )):
@@ -680,7 +682,8 @@ def _run_interface(self, runtime):
680
682
orig_dtype = nii .get_data_dtype ()
681
683
if orig_dtype != data_dtype :
682
684
LOGGER .warning (
683
- f"Changing { Path (dest_file ).name } dtype from { orig_dtype } to { data_dtype } "
685
+ f"Changing { Path (dest_file ).name } dtype "
686
+ f"from { orig_dtype } to { data_dtype } "
684
687
)
685
688
# coerce dataobj to new data dtype
686
689
if np .issubdtype (data_dtype , np .integer ):
@@ -734,6 +737,7 @@ class _SaveDerivativeInputSpec(TraitedSpec):
734
737
traits .Str , desc = "path to the file relative to the base directory"
735
738
)
736
739
740
+
737
741
class _SaveDerivativeOutputSpec (TraitedSpec ):
738
742
out_file = OutputMultiObject (File , desc = "written file path" )
739
743
out_meta = OutputMultiObject (File , desc = "written JSON sidecar path" )
You can’t perform that action at this time.
0 commit comments