Skip to content

Commit 8d6e7ee

Browse files
authored
Merge pull request #331 from dkuegler/feature/fixes-subject-files
Fix: save loaction of mri/orig/001.mgz
2 parents 834b4df + dd1f218 commit 8d6e7ee

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

FastSurferCNN/utils/common.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ def copy_orig_name(self) -> str:
273273
hasattr(self, "_copy_orig_name")
274274
or "The copy_orig_name attribute has not been set!"
275275
)
276-
return self._copy_orig_name
276+
return self.filename_in_subject_folder(self._copy_orig_name)
277277

278278
@copy_orig_name.setter
279279
def copy_orig_name(self, _copy_orig_name: str):
@@ -565,7 +565,7 @@ def _not_abs(subj_attr):
565565
"for relative file paths of input files.".format(**self._flags)
566566
)
567567

568-
self._remove_suffix = getattr(args, "remove_suffix") or ""
568+
self._remove_suffix = getattr(args, "remove_suffix", "")
569569
if self._num_subjects > 1:
570570
if getattr(args, "sid", "") not in ["", None]:
571571
raise RuntimeError(

0 commit comments

Comments
 (0)