Skip to content

Commit

Permalink
Revert commit df7032f (see Github issue #229 for explanation)
Browse files Browse the repository at this point in the history
(cherry picked from commit 5c380ea)
  • Loading branch information
marcelzwiers committed Mar 29, 2024
1 parent f2ff62f commit 2339f1b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion bidscoin/plugins/dcm2niix2bids.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ def bidsmapper_plugin(session: Path, bidsmap_new: Bidsmap, bidsmap_old: Bidsmap,
run, _ = bids.get_matching_run(datasource, template)

# See if we have collected the run somewhere in our new bidsmap
if not bids.exist_run(bidsmap_new, datasource.datatype, run):
if not bids.exist_run(bidsmap_new, '', run):

# Communicate with the user if the run was not present in bidsmap_old or in template, i.e. that we found a new sample
if not match:
Expand Down
2 changes: 1 addition & 1 deletion bidscoin/plugins/nibabel2bids.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ def bidsmapper_plugin(session: Path, bidsmap_new: Bidsmap, bidsmap_old: Bidsmap,
run, _ = bids.get_matching_run(datasource, template)

# See if we have collected the run somewhere in our new bidsmap
if not bids.exist_run(bidsmap_new, datasource.datatype, run):
if not bids.exist_run(bidsmap_new, '', run):

# Communicate with the user if the run was not present in bidsmap_old or in template, i.e. that we found a new sample
if not match:
Expand Down
2 changes: 1 addition & 1 deletion bidscoin/plugins/spec2nii2bids.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ def bidsmapper_plugin(session: Path, bidsmap_new: Bidsmap, bidsmap_old: Bidsmap,
run, _ = bids.get_matching_run(datasource, template)

# See if we have collected the run somewhere in our new bidsmap
if not bids.exist_run(bidsmap_new, datasource.datatype, run):
if not bids.exist_run(bidsmap_new, '', run):

# Communicate with the user if the run was not present in bidsmap_old or in template, i.e. that we found a new sample
if not match:
Expand Down

0 comments on commit 2339f1b

Please sign in to comment.