Skip to content

Commit 2f3bb67

Browse files
Update pynest/nest/lib/hl_api_types.py
Co-authored-by: med-ayssar <med.ayssar@gmail.com>
1 parent 177680a commit 2f3bb67

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

pynest/nest/lib/hl_api_types.py

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

12871287
if isinstance(data, (numpy.ndarray, NodeCollection)):
12881288
return data.tolist()
1289-
if isinstance(data, (numpy.int_, numpy.intc, numpy.intp, numpy.int8,
1290-
numpy.int16, numpy.int32, numpy.int64, numpy.uint8,
1291-
numpy.uint16, numpy.uint32, numpy.uint64)):
1289+
if np.issubdtype(d, np.integer):
12921290
return int(data)
12931291
elif isinstance(data, SynapseCollection):
12941292
# Get full information from SynapseCollection

0 commit comments

Comments
 (0)