Skip to content

Commit

Permalink
Merge pull request #250 from smeisler/fix/jsonnumbers
Browse files Browse the repository at this point in the history
Allowing Numericals in JSON custom fields. Thank you Steven.
  • Loading branch information
arnaudbore authored Aug 10, 2023
2 parents 25eb307 + c828f66 commit a4eb1d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dcm2bids/acquisition.py
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ def dstSidecarData(self, idList):
value = [value]

for val in value:
if isinstance(val, str) or isinstance(val, bool):
if isinstance(val, (bool, str, int, float)):
if val not in idList and key in DEFAULT.keyWithPathsidecar_changes:
logging.warning(f"No id found for '{key}' value '{val}'.")
logging.warning(f"No sidecar changes for field '{key}' "
Expand Down

0 comments on commit a4eb1d0

Please sign in to comment.