Skip to content

Commit

Permalink
fix function
Browse files Browse the repository at this point in the history
  • Loading branch information
rcannood authored Nov 8, 2024
1 parent be0b4c8 commit 496a767
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/extract_uns_metadata/script.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def is_atomic(obj):
def to_atomic(obj):
if isinstance(obj, (np.int32,np.int64)):
return int(obj)
elif isinstance(obj, np.float32,np.float64):
elif isinstance(obj, (np.float32,np.float64)):
return float(obj)
elif isinstance(obj, np.bool_):
return bool(obj)
Expand Down

0 comments on commit 496a767

Please sign in to comment.