mattions / neuronvisio

A Graphical User Interface with 3D Visualization features for NEURON simulation enviroment
https://neuronvisio.readthedocs.io
Other
30 stars 15 forks source link

Reloading a NeuroML file dos not work #48

Closed mattions closed 12 years ago

mattions commented 12 years ago

It seems that Neuron 7.2 has updated their internal API to load NeuroML and it does not work anymore.

https://github.com/mattions/neuronvisio/blob/master/neuronvisio/manager.py#L527

@pgleeson is gonna send us an example with the updated version, so we can update that.

pgleeson commented 12 years ago

Added to my list of TODOs...

mattions commented 12 years ago

Actually it turns out that the neuroml module exist in python, but it's not installed by default due to an error in the python setup.py (which has been fixed in the current mercurial master)

To fix this problem go to the python source of NEURON

   cd <neuron_downloaded_dir>/src/nrnpython

at the very end of setup.py change the line

   packages=['neuron','neuron.tests'],

to

   packages=['neuron','neuron.neuroml','neuron.tests'],

and then rebuild and install the python module

   python setup.py install

you may have to use sudo, if installing it globally