-
Notifications
You must be signed in to change notification settings - Fork 119
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RangeVarPlot enhancements #706
Conversation
This is a work in progress because of the following bug: If you run this:
you'll see the 5 values (3 segments + endpoints):
which is correct. If instead, you uncomment the species initialization:
it incorrectly shows 10 values (and with a slight modification, one can show that it generates two copies of the correct values):
If the This is mysterious because |
Ok, so the above bug does NOT appear to be a bug in this commit, as it appears when I build NEURON from sources (d1ba505) using autotools (or cmake) on Ubuntu 20.04 (with Python 3.8.2) but it does not occur if I use the The test needs to be slightly revised to run on those versions as they do not have a
|
I removed the WIP designation since the bug doesn't seem to be coming from here. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Have you tested to your satisfaction?
Yes. I think this is ready to merge. |
def _nrnpy_rvp_pyobj_callback(f): | ||
# unless f is an rxd variable, we return it directly | ||
f_type = str(type(f)) | ||
if f_type not in ("<class 'neuron.rxd.species.SpeciesOnRegion'>", "<class 'neuron.rxd.species.Species'>"): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we include "<class 'neuron.rxd.species.State'>", "<class 'neuron.rxd.species.Parameter'>" and "<class 'neuron.rxd.species.ParameterOnRegion'>"?
Support for rxd, e.g.
or
and a new method that returns a new Vector (the old
rvp.to_vector
only manipulates an existing Vector):