Skip to content

Commit 86a2c2c

Browse files
ensure that np.number is encoded as a numpy scalar
1 parent 9c2e419 commit 86a2c2c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

datajoint/blob.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ def pack_blob(self, obj):
150150

151151
# blob types in the expanded dj0 blob format
152152
self.set_dj0()
153-
if not isinstance(obj, np.ndarray):
153+
if not isinstance(obj, (np.ndarray, np.number)):
154154
# python built-in data types
155155
if isinstance(obj, bool):
156156
return self.pack_bool(obj)

0 commit comments

Comments
 (0)