I am having some difficulty finding an answer to the following question in the NEURON-Python documentation so far and was hoping for some guidance or pointing to the right direction.
My question is: How can I load (and thus execute) a hoc file from a python script that is accompanied by command line arguments?
For a simple hoc script I know that the statements load_file("temp.hoc) in NEURON and h('load_file("temp.hoc")') in Python are equivalent. However how can I execute more complex NEURON statements from within a python script, like the one below?
Code: Select all
nrniv -c gidOI=0 -c cellindOI=0 -c stimflag=0 -c "strdef runname" -c runname="\"some name\"" -c "strdef origRunName" -c origRunName="\"some name\"" -c "strdef celltype2use" -c celltype2use="\"some cell\"" -c "strdef resultsfolder" -c resultsfolder="\"00055\"" ./folder_results/run_name/00055/run.hoc -c "quit()"