Skip to content

Commit

Permalink
Merge pull request #325 from UNFmontreal/fix_tag_does_not_exist
Browse files Browse the repository at this point in the history
[BF] Issue when tag does not exist
  • Loading branch information
arnaudbore authored Nov 11, 2024
2 parents e8537ee + 3292d46 commit 7120800
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion dcm2bids/sidecar.py
Original file line number Diff line number Diff line change
Expand Up @@ -396,8 +396,10 @@ def compare_float(name, pattern):

elif isinstance(name, list):
result.append(compare_list(name, pattern))
else:
elif name:
result.append(compare(name, pattern))
else:
result.append(False)

return all(result)

Expand Down

0 comments on commit 7120800

Please sign in to comment.