Skip to content

Commit

Permalink
Update cubids.py
Browse files Browse the repository at this point in the history
  • Loading branch information
tsalo committed Jan 17, 2025
1 parent 4aacea4 commit fe68dea
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cubids/cubids.py
Original file line number Diff line number Diff line change
Expand Up @@ -477,6 +477,7 @@ def change_filename(self, filepath, entities):
filepath=filepath,
entities=entities,
out_dir=str(self.path),
is_longitudinal=self.is_longitudinal,
)

exts = Path(filepath).suffixes
Expand Down Expand Up @@ -608,6 +609,7 @@ def change_filename(self, filepath, entities):
data["IntendedFor"].remove(item)
# add new filename
data["IntendedFor"].append(_get_participant_relative_path(new_path))

if item == _get_bidsuri(filepath, self.path):
# remove old filename
data["IntendedFor"].remove(item)
Expand Down

0 comments on commit fe68dea

Please sign in to comment.