Skip to content

Commit

Permalink
Make sure we do not try to add data samples to the provenance store, …
Browse files Browse the repository at this point in the history
…i.e. when using `bidsmapper -s` (GitHub issue #252)
  • Loading branch information
marcelzwiers committed Dec 10, 2024
1 parent d76d77f commit d5997bd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions bidscoin/bidseditor.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,9 @@ def __init__(self, bidsfolder: Path, input_bidsmap: BidsMap, template_bidsmap: B
input_bidsmap = copy.deepcopy(template_bidsmap)
input_bidsmap.delete_runs()

# Make sure we do not try to add data samples to the provenance store (i.e. when using bidsmapper -s)
input_bidsmap.store = {}

# Keep track of the EditWindow status
self.editwindow_opened: Union[str,None] = None
"""The provenance of the run-item that is opened in the EditWindow"""
Expand Down

0 comments on commit d5997bd

Please sign in to comment.