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

The basics of how to develop, test, and use models.
Post Reply
virtualkss
Posts: 4
Joined: Thu Apr 29, 2021 11:57 pm

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

Post 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
ted
Site Admin
Posts: 5944
Joined: Wed May 18, 2005 4:50 pm
Location: Yale University School of Medicine
Contact:

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

Post by ted »

To answer your own question, execute
nrngui -h
or
nrniv -h
virtualkss
Posts: 4
Joined: Thu Apr 29, 2021 11:57 pm

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

Post 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
Post Reply