From 2ce64e0c0379854ec37dbd081a91a061afc84432 Mon Sep 17 00:00:00 2001 From: Marcel Zwiers Date: Mon, 22 Jan 2024 10:37:39 +0100 Subject: [PATCH] Minor tweak --- bidscoin/bids.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bidscoin/bids.py b/bidscoin/bids.py index 3b90dd13..a5811bbf 100644 --- a/bidscoin/bids.py +++ b/bidscoin/bids.py @@ -1389,7 +1389,7 @@ def get_run(bidsmap: dict, datatype: str, suffix_idx: Union[int, str], datasourc if index == suffix_idx or run['bids']['suffix'] == suffix_idx: # Get a clean run (remove comments to avoid overly complicated commentedMaps from ruamel.yaml) - run_ = create_run(datasource, bidsmap) + run_ = create_run(copy.deepcopy(datasource), bidsmap) run_['datasource'].datatype = datatype for propkey, propvalue in run['properties'].items():