diff --git a/bidscoin/bids.py b/bidscoin/bids.py index e4b7e852..d5a41801 100644 --- a/bidscoin/bids.py +++ b/bidscoin/bids.py @@ -2142,7 +2142,7 @@ def participantmeta(participants_json: Path, bidsmap: BidsMap=None) -> dict: # If we miss metadata then use any participant "meta" field in the bidsmap participants_df = addparticipant(participants_json.with_suffix('.tsv')) - for column in participants_df.columns: + for column in ['participant_id'] + list(participants_df.columns): for dataformat in bidsmap.dataformats: if not metadata.get(column) and column in dataformat.participant: metadata[column] = dataformat.participant[column].get('meta', {}) diff --git a/bidscoin/bidscoiner.py b/bidscoin/bidscoiner.py index b9427035..0293785c 100755 --- a/bidscoin/bidscoiner.py +++ b/bidscoin/bidscoiner.py @@ -51,7 +51,7 @@ def bidscoiner(sourcefolder: str, bidsfolder: str, participant: list=(), force: bcoin.setup_logging(bidscoinfolder/'bidscoiner.log') LOGGER.info('') LOGGER.info(f"-------------- START BIDScoiner {__version__}: BIDS {bidsversion()} ------------") - LOGGER.info(f">>> bidscoiner sourcefolder={rawfolder} bidsfolder={bidsfolder} participant={participant} force={force} bidsmapname={bidsmapfile}") + LOGGER.info(f">>> bidscoiner sourcefolder={rawfolder} bidsfolder={bidsfolder} participant={participant} force={force} bidsmap={bidsmapfile}") # Create a dataset description file if it does not exist dataset_file = bidsfolder/'dataset_description.json'