Page 1 of 1

Can "nrniv" or "nrngui" command accept multiple argument?

Posted: Thu Jul 01, 2021 12:10 am
by virtualkss
Hello,

I am trying Python scripting to do multiple simulations by modifying only a few parameters in one hoc code.

I usually type the following command in terminal on Ubuntu Linux when running NEURON.

Code: Select all

nrniv mosinit.hoc
or

Code: Select all

nrngui mosinit.hoc
Can the "nrniv" or "nrngui" command accept arguments other than the file name to be executed?
If it possible, how can the hoc code refer to the received argument value?

Thank you for checking my topics.

Sincerely,

Kisung Shin

Re: Can "nrniv" or "nrngui" command accept multiple argument?

Posted: Thu Jul 01, 2021 5:08 pm
by ted
To answer your own question, execute
nrngui -h
or
nrniv -h

Re: Can "nrniv" or "nrngui" command accept multiple argument?

Posted: Tue Jul 06, 2021 9:48 pm
by virtualkss
Thank you very much!

In my case, I can script running of nrniv with -c option.

Code: Select all

nrniv -c "a=1" -c "b=2" test.hoc
Thank you for the information.

Sincerely,

Kisung Shin