We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e67fab6 commit e8593caCopy full SHA for e8593ca
kipoiseq/utils.py
@@ -16,7 +16,7 @@ def to_scalar(obj):
16
"""Convert numpy scalar to native scalar
17
"""
18
if isinstance(obj, np.generic):
19
- return np.asscalar(obj)
+ return obj.item()
20
else:
21
return obj
22
0 commit comments