Skip to content

Commit

Permalink
Also collect json-files for physio conversions
Browse files Browse the repository at this point in the history
  • Loading branch information
marcelzwiers authored Jan 11, 2024
1 parent 4805125 commit 5c3b8de
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions bidscoin/plugins/dcm2niix2bids.py
Original file line number Diff line number Diff line change
Expand Up @@ -293,6 +293,7 @@ def bidscoiner_plugin(session: Path, bidsmap: dict, bidsses: Path) -> Union[None
try:
physiodata = physio.readphysio(sourcefile)
physio.physio2tsv(physiodata, outfolder/bidsname)
jsonfiles.update(outfolder.glob(f"{bidsname}.json")) # add existing created json files: bidsname.json
except Exception as physioerror:
LOGGER.error(f"Could not read/convert physiological file: {sourcefile}\n{physioerror}")
continue
Expand Down

0 comments on commit 5c3b8de

Please sign in to comment.