Skip to content

Commit c536db0

Browse files
committed
Fix the code
1 parent 2f3bb67 commit c536db0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pynest/nest/lib/hl_api_types.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1286,7 +1286,7 @@ def serialize_data(data):
12861286

12871287
if isinstance(data, (numpy.ndarray, NodeCollection)):
12881288
return data.tolist()
1289-
if np.issubdtype(d, np.integer):
1289+
if isinstance(data, (numpy.integer)):
12901290
return int(data)
12911291
elif isinstance(data, SynapseCollection):
12921292
# Get full information from SynapseCollection

0 commit comments

Comments
 (0)