ctn-archive / nengo_gui_2014

HTML5 graphical interface for Nengo -- now obsolete! Please use https://github.com/nengo/nengo_gui instead
Other
6 stars 0 forks source link

Allow to pass arguments to scripts #134

Closed jgosmann closed 8 years ago

jgosmann commented 10 years ago

This PR allows to specifiy arguments to the script on the command line (in addition to the filename).

It is based on the argparse branch.

This PR might not be the final implementation, but merely the basis for discussion. Probably the arguments should be reset if another file is loaded. Maybe there are better ways to actually pass the arguments into the code.

Seanny123 commented 10 years ago

By "better way", are you talking about the use case where the person is creating the network in the GUI and doesn't want to drop down to the command line to actually run their script? What about including an args.txt file? We could also include this somewhat advanced option in the GUI as well?

jgosmann commented 10 years ago

I was talking about the actual implementation by writing a string of Python code executing that first and than the actual script. Also that code appears twice which violates the DRY principle.

jgosmann commented 8 years ago

As nengo_gui_2014 is deprecated and this PR is noise in my PR list, I am closing it.