Skip to content

Commit 16ddc59

Browse files
committed
Minor tweak
1 parent b64b29c commit 16ddc59

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

bidscoin/bidsparticipants.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,9 @@ def bidsparticipants(rawfolder: str, bidsfolder: str, keys: str, bidsmapfile: st
9494

9595
# Get the bidsmap sub-/ses-prefix from the bidsmap YAML-file
9696
bidsmap,_ = bids.load_bidsmap(Path(bidsmapfile), bidsfolder/'code'/'bidscoin')
97+
if not bidsmap:
98+
LOGGER.info('Make sure to run "bidsmapper" first, exiting now')
99+
return
97100
subprefix = bidsmap['Options']['bidscoin']['subprefix']
98101
sesprefix = bidsmap['Options']['bidscoin']['sesprefix']
99102

0 commit comments

Comments
 (0)