Converted from SourceForge issue 3537800, submitted by jlstevens
Submit Date: 2012-06-25 14:49 GMT
Topographica has global_params which allow parameters to be specified with the -p flag. This naming is incorrect as global_params only behave properly within .ty scripts and global parameters that are relevant to the whole simulator (eg. OpenMP settings) would be very useful. The existing global_params should therefore be called script_params and global_params should be implemented with the following properties:
- At the commandline any option '-x=y' should set global parameter 'x' to value 'y'
Global parameters belong to the global namespace so that you can put the line 'x=y' in your topographica.rc file to always set global parameter 'x' as 'y' by default. Any behaviour set in the rc file is overridden if explicitly set on the commandline.
At the IPython prompt, entering 'x=y' should set global parameter 'x' to 'y' for the reminder of that session (ie. it should be possible to rebind global parameters at any time)
If this were implemented it would be possible to specify options in the topographica.rc file instead of having to specify these options each time Topographica is invoke. All the current options should be implemented this way (ie. -i,-v,-d,-l,-g, --pdb, -c, -p, -a) with the exception of -h/--help.
Converted from SourceForge issue 3537800, submitted by jlstevens Submit Date: 2012-06-25 14:49 GMT
Topographica has global_params which allow parameters to be specified with the -p flag. This naming is incorrect as global_params only behave properly within .ty scripts and global parameters that are relevant to the whole simulator (eg. OpenMP settings) would be very useful. The existing global_params should therefore be called script_params and global_params should be implemented with the following properties:
- At the commandline any option '-x=y' should set global parameter 'x' to value 'y'
If this were implemented it would be possible to specify options in the topographica.rc file instead of having to specify these options each time Topographica is invoke. All the current options should be implemented this way (ie. -i,-v,-d,-l,-g, --pdb, -c, -p, -a) with the exception of -h/--help.