Skip to content

Commit

Permalink
Add a warning if an unmatched datasource is not in unknowndatatypes (…
Browse files Browse the repository at this point in the history
…Github issue #229)
  • Loading branch information
marcelzwiers committed Apr 4, 2024
1 parent c5dccf5 commit 93589dd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions bidscoin/bids.py
Original file line number Diff line number Diff line change
Expand Up @@ -1786,6 +1786,8 @@ def get_matching_run(datasource: DataSource, bidsmap: Bidsmap, runtime=False) ->

# We don't have a match (all tests failed, so datatype should be the *last* one, e.g. unknowndatatype)
LOGGER.bcdebug(f"Found no bidsmap match for: {run_['provenance']}")
if not datasource.datatype in unknowndatatypes:
LOGGER.warning(f"Datatype was expected to be in {unknowndatatypes}, instead it is {datasource.datatype} -> {run_['provenance']}")
return run_, ''


Expand Down

0 comments on commit 93589dd

Please sign in to comment.