Increase stacksize from python?
Posted: Thu Feb 19, 2015 11:34 am
I have a model with over 10000 sections, specified in Python via the neuron module. When I execute:
I am warned:
If I then execute:
and use the ModelViewer to visualize the topology, it's clear that it didn't load more compartments than the limited stacksize.
Is it possible to increase this parameter in Python? Normally it is changed via the command line, or modifying /nrn/share/nrn/lib/nrn.defaults, but it would be nice for model sharing if my script could update the interpreter without requiring the user to climb into the source.
Code: Select all
h.topology()
Code: Select all
NEURON: Stack too deep. Increase with -NSTACK stacksize option
Code: Select all
from neuron import gui
Is it possible to increase this parameter in Python? Normally it is changed via the command line, or modifying /nrn/share/nrn/lib/nrn.defaults, but it would be nice for model sharing if my script could update the interpreter without requiring the user to climb into the source.