Allow unloading a model

4 views
Skip to first unread message

Uri Cohen

unread,
Jan 26, 2012, 6:43:59 AM1/26/12
to neuro...@googlegroups.com
Hi all,
Neuronvisio can't currently unload a model, AFAIK. I found this NEURON thread on the issue, we can use it to unload models. I believe we need this only before loading a new models, and see no value in providing an 'unload' button.
Any thought?
            Uri Cohen

Michele Mattioni

unread,
Jan 26, 2012, 9:46:40 AM1/26/12
to neuro...@googlegroups.com
This could be a very interesting feature.
I've very briefly had a look to it few months ago, but with no great result.

If you find a way that works and got the time, give it a shoot.
My problem has to do with python reference which were still kept
alive, even if all the section of the model were gone.

Cheers,
Michele.

Miha Pelko

unread,
Jan 26, 2012, 9:49:49 AM1/26/12
to neuro...@googlegroups.com
Hi,

in some other projects I managed this (reloading a Neuron model) but it indeed requires a painful process of eliminating all the python references made within the code.

lpmp

Michele Mattioni

unread,
Jan 26, 2012, 10:22:56 AM1/26/12
to neuro...@googlegroups.com
One super hackish way to do it was to reaload the neuron module with:

neuronvisio.controls = reload(neuronvisio.controls)

I've used it here (https://gist.github.com/1211166)
However, if the GUI is running I think this doesn't really work.

Dunno if it helps!

Cheers,
Michele.

Reply all
Reply to author
Forward
0 new messages