Skip to content

Commit

Permalink
Fix unresolved bidsmap filepath
Browse files Browse the repository at this point in the history
  • Loading branch information
marcelzwiers committed Sep 27, 2024
1 parent 591cc42 commit ddbce8a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bidscoin/bidsmapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ def bidsmapper(sourcefolder: str, bidsfolder: str, bidsmap: str, template: str,
bidsmap_old.filepath = Path()
bidsmap_new = copy.deepcopy(bidsmap_old if bidsmap_old.filepath.name else template)
bidsmap_new.delete_runs()
bidsmap_new.filepath = bidsmapfile
bidsmap_new.filepath = bidsmapfile.resolve()
template.options = bidsmap_new.options # Always use the options of the new bidsmap
template.plugins = bidsmap_new.plugins # Always use the plugins of the new bidsmap
if unzip:
Expand Down

0 comments on commit ddbce8a

Please sign in to comment.