Skip to content

Commit

Permalink
Account for empty runitem when saving provenance data (Github issue #241
Browse files Browse the repository at this point in the history
)
  • Loading branch information
marcelzwiers committed Oct 24, 2024
1 parent 97fbb18 commit cff515e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions bidscoin/bids.py
Original file line number Diff line number Diff line change
Expand Up @@ -2695,6 +2695,7 @@ def bidsprov(bidsfolder: Path, source: Path=Path(), runitem: RunItem=None, targe
LOGGER.error(f"Could not resolve the BIDS root folder from {bidsfolder}")
provfile = bidsfolder/'code'/'bidscoin'/'bidscoiner.tsv'
targets = [target.relative_to(bidsfolder) for target in sorted(targets)]
runitem = runitem or RunItem()

# Read the provenance data and add the new data to it
if provfile.is_file():
Expand Down

0 comments on commit cff515e

Please sign in to comment.