Skip to content

Commit

Permalink
Merge pull request #331 from dkuegler/feature/fixes-subject-files
Browse files Browse the repository at this point in the history
Fix: save loaction of mri/orig/001.mgz
  • Loading branch information
m-reuter authored Jun 14, 2023
2 parents 834b4df + dd1f218 commit 8d6e7ee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions FastSurferCNN/utils/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ def copy_orig_name(self) -> str:
hasattr(self, "_copy_orig_name")
or "The copy_orig_name attribute has not been set!"
)
return self._copy_orig_name
return self.filename_in_subject_folder(self._copy_orig_name)

@copy_orig_name.setter
def copy_orig_name(self, _copy_orig_name: str):
Expand Down Expand Up @@ -565,7 +565,7 @@ def _not_abs(subj_attr):
"for relative file paths of input files.".format(**self._flags)
)

self._remove_suffix = getattr(args, "remove_suffix") or ""
self._remove_suffix = getattr(args, "remove_suffix", "")
if self._num_subjects > 1:
if getattr(args, "sid", "") not in ["", None]:
raise RuntimeError(
Expand Down

0 comments on commit 8d6e7ee

Please sign in to comment.