Skip to content

Commit

Permalink
Minor bugfixes
Browse files Browse the repository at this point in the history
  • Loading branch information
marcelzwiers committed Jan 21, 2025
1 parent 07aba23 commit 25df2f9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion bidscoin/bids.py
Original file line number Diff line number Diff line change
Expand Up @@ -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', {})
Expand Down
2 changes: 1 addition & 1 deletion bidscoin/bidscoiner.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down

0 comments on commit 25df2f9

Please sign in to comment.