Skip to content

Commit

Permalink
[BUG] Allow int subject etc
Browse files Browse the repository at this point in the history
  • Loading branch information
alexrockhill committed Jan 10, 2024
1 parent cd2354a commit 2a922b2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions mne_bids/path.py
Original file line number Diff line number Diff line change
Expand Up @@ -959,6 +959,8 @@ def update(self, *, check=None, **kwargs):
)

if ENTITY_VALUE_TYPE[key] == "label":
if isinstance(val, int):
val = str(val)
_validate_type(val, types=(None, str), item_name=key)
else:
assert ENTITY_VALUE_TYPE[key] == "index"
Expand Down

0 comments on commit 2a922b2

Please sign in to comment.