Skip to content

Commit

Permalink
Remove unused int_asbuffer (#3112)
Browse files Browse the repository at this point in the history
It was removed more than 4 years ago from numpy. It was also not doing
anything.
  • Loading branch information
JCGoran authored Oct 3, 2024
1 parent 90f2ec2 commit 682a237
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions share/lib/python/neuron/nonvint_block_supervisor.py
Original file line number Diff line number Diff line change
@@ -1,15 +1,10 @@
import sys
import ctypes
import neuron
import traceback
import numpy
import neuron
from neuron import h
import traceback

# reducing the indirection improves performance
try:
_numpy_core_multiarray_int_asbuffer = numpy.core.multiarray.int_asbuffer
except:
pass
_ctypes_addressof = ctypes.addressof
_numpy_array = numpy.array
_numpy_frombuffer = numpy.frombuffer
Expand Down

0 comments on commit 682a237

Please sign in to comment.