Replies: 1 comment
-
I agree that it's surprising that the One point of clarification though: >>> from neuron import h
>>> import numpy as np
>>> v = h.Vector([6, 5, 42])
>>> n = np.array(v)
>>> a = v.as_numpy()
>>> n[2]
42.0
>>> n[2] = 7
>>> v[2]
42.0
>>> a[2] = 7
>>> v[2]
7.0 i.e. changing |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Context
Encountered some via some error in LFPy: LFPy/LFPy#414
Overview of the issue
Expected result/behavior
As far as I know both
v.as_numpy()
andnp.array(v)
should result in the same output, although the first syntax option may be preferable. IPython also shuts down (see below).NEURON setup
Logs
Full IPython trace:
Beta Was this translation helpful? Give feedback.
All reactions