From d5997bde3d6b4ccf8a360d4863846487318d9795 Mon Sep 17 00:00:00 2001 From: Marcel Zwiers Date: Tue, 10 Dec 2024 13:32:48 +0100 Subject: [PATCH] Make sure we do not try to add data samples to the provenance store, i.e. when using `bidsmapper -s` (GitHub issue #252) --- bidscoin/bidseditor.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bidscoin/bidseditor.py b/bidscoin/bidseditor.py index af833e9f..b80e9d3d 100755 --- a/bidscoin/bidseditor.py +++ b/bidscoin/bidseditor.py @@ -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"""