From 682a2370de83cf627a1bd6d2494cda7550dd1708 Mon Sep 17 00:00:00 2001 From: JCGoran Date: Thu, 3 Oct 2024 17:15:16 +0200 Subject: [PATCH] Remove unused int_asbuffer (#3112) It was removed more than 4 years ago from numpy. It was also not doing anything. --- share/lib/python/neuron/nonvint_block_supervisor.py | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/share/lib/python/neuron/nonvint_block_supervisor.py b/share/lib/python/neuron/nonvint_block_supervisor.py index 48d84bc565..34ee2470f0 100644 --- a/share/lib/python/neuron/nonvint_block_supervisor.py +++ b/share/lib/python/neuron/nonvint_block_supervisor.py @@ -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