-
Notifications
You must be signed in to change notification settings - Fork 45
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
NEURON 7.6.3 support #113
Comments
Could be related: Some if not all example files can only be run once, before resulting in various Hoc errors while reading in morphology files that has already been read once. This issue arose w. Python3 provided by Anaconda on Ubuntu 18.04.1 LTS. Doesn't occur with the system installation of Python3. |
I could not find any mentioning of the allsec method being removed, which seems weird. I would have expected it to at least be mentioned here: Perhaps start by asking on the NEURON forum? |
@torbjone , yes we can inquire Hines. I don't quite remember why we used that method in the first place though, as the SectionList object instance (filled with Section references) is itself an iterable meaning that the method was kind of redundant anyway. Can try and remove usage of this allsec() method and see what happens. |
I see the
|
I will make an attempt to fix this issue. |
thanks @espenhgn this would be awesome |
This commit appears to be the culprit: neuronsimulator/nrn@25482fa As this commit is newer than 7.6.2, it appears as though tests pass with the official 7.6.2 release (tested w. Ubuntu 18.04, system python3, anaconda python 2.7 & 3.6). Simply replacing |
The failing tests are all related to computiting the axial currents. The basic issue is that
which results in:
I'll inquire what is the best semantic to use in this case. We don't want to call neuron.h.allsec() as we should only iterate over sections that belong to a particular cell object |
Posted this on the NEURON forum: https://www.neuron.yale.edu/phpBB/viewtopic.php?f=2&t=3990 |
Ok, I think the main issue with the SectionList iteration in NEURON is now resolved through neuronsimulator/nrn@5174b0b I updated the Travis build system in PR #114 to use the current master from the NEURON repository. There are a couple of tests that fail but I think that is something we can investigate and work around. Py2.7 tests fail now on Travis due to some other reason. What this then means is that older versions of LFPy only support NEURON 7.5-7.6.2, current version of LFPy NEURON > 7.6.3 |
Looks like the latest official NEURON release is v7.6.4 at https://neuron.yale.edu/ftp/neuron/versions/v7.6/ , even if the main homepage lists 7.6.3 as the latest (but download link points to the newer release). With this, I'll merge PR #114 and make bugfix release v2.0.1 available on PyPI. |
* updated/added install instructions for Ubuntu 18.04 LTS * docstring fformatting * adding Python 3.7 to travis testing * 3.7 not ready for prime time * documentation updates, updated recipe for NEURON source install on Ubuntu * removed use of h.SectionList.allsec method * build NEURON against github master * fix test with NEURON@github:master * prep next release 2.0.1 * debug py27 travis build * debug travis python27 * send NEURON .configure output to null * v2.0.1 version number * removed csa from dependency_links list * neuron 7.6.4 a requirement for this version * add NEURON >= v7.6.4 version testing * Update README.md * Update README.md * LFPy.__version__ = '2.0.1'
Merged #114, closing |
It appears that the
allsec
method ofneuron.h.SectionList
has been removed in NEURON 7.6.3. The method is used in quite a few unittests and probably other places in the codebase. From the look of it we have to either support only older versions of NEURON or force users onto the new NEURON version. Tested with NEURON 7.6.3 and 7.5 HEAD (7eb3e93).The text was updated successfully, but these errors were encountered: