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):
630630
631631 new_compression = False
632632 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+ )
634636
635637 data_dtype = self .inputs .data_dtype or self ._default_dtypes [self .inputs .suffix ]
636638 if is_nifti and any ((self .inputs .check_hdr , data_dtype )):
@@ -680,7 +682,8 @@ def _run_interface(self, runtime):
680682 orig_dtype = nii .get_data_dtype ()
681683 if orig_dtype != data_dtype :
682684 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 } "
684687 )
685688 # coerce dataobj to new data dtype
686689 if np .issubdtype (data_dtype , np .integer ):
@@ -734,6 +737,7 @@ class _SaveDerivativeInputSpec(TraitedSpec):
734737 traits .Str , desc = "path to the file relative to the base directory"
735738 )
736739
740+
737741class _SaveDerivativeOutputSpec (TraitedSpec ):
738742 out_file = OutputMultiObject (File , desc = "written file path" )
739743 out_meta = OutputMultiObject (File , desc = "written JSON sidecar path" )
You can’t perform that action at this time.
0 commit comments