Skip to content

Commit d5997bd

Browse files
committed
Make sure we do not try to add data samples to the provenance store, i.e. when using bidsmapper -s (GitHub issue #252)
1 parent d76d77f commit d5997bd

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

bidscoin/bidseditor.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,9 @@ def __init__(self, bidsfolder: Path, input_bidsmap: BidsMap, template_bidsmap: B
147147
input_bidsmap = copy.deepcopy(template_bidsmap)
148148
input_bidsmap.delete_runs()
149149

150+
# Make sure we do not try to add data samples to the provenance store (i.e. when using bidsmapper -s)
151+
input_bidsmap.store = {}
152+
150153
# Keep track of the EditWindow status
151154
self.editwindow_opened: Union[str,None] = None
152155
"""The provenance of the run-item that is opened in the EditWindow"""

0 commit comments

Comments
 (0)