Skip to content

Commit e8593ca

Browse files
committed
resolve deprecation warning
1 parent e67fab6 commit e8593ca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kipoiseq/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ def to_scalar(obj):
1616
"""Convert numpy scalar to native scalar
1717
"""
1818
if isinstance(obj, np.generic):
19-
return np.asscalar(obj)
19+
return obj.item()
2020
else:
2121
return obj
2222

0 commit comments

Comments
 (0)