Skip to content

Commit

Permalink
Address review.
Browse files Browse the repository at this point in the history
  • Loading branch information
tsalo committed Jan 29, 2024
1 parent 418eaf8 commit 0580d74
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions cubids/cubids.py
Original file line number Diff line number Diff line change
Expand Up @@ -497,11 +497,10 @@ def change_filename(self, filepath, entities):
if len(filename) > 0:
filename = sub_ses + "_" + filename + "_" + suffix + old_ext
else:
# XXX: Why is filename here if it's an empty string?
filename = sub_ses + filename + "_" + suffix + old_ext
raise ValueError(f"Could not construct new filename for {filepath}")

# CHECK TO SEE IF DATATYPE CHANGED
# XXX: Why/how would datatype change?
# datatype may be overridden/changed if the original file is located in the wrong folder.
dtypes = ["anat", "func", "perf", "fmap", "dwi"]
dtype_orig = ""
for dtype in dtypes:
Expand Down

0 comments on commit 0580d74

Please sign in to comment.