Support functions for parsing command-line arguments and providing
the Topographica command prompt. Typically called from the
'./topographica' script, but can be called directly if using
Topographica files within a separate Python.
|
|
sim_name_from_filename(filename)
Set the simulation title from the given filename, if none has been
set already. |
source code
|
|
|
|
boolean_option_action(option,
opt_str,
value,
parser)
Callback function for boolean-valued options that apply to the entire run. |
source code
|
|
|
|
|
|
|
i_action(option,
opt_str,
value,
parser)
Callback function for the -i option. |
source code
|
|
|
|
gui()
Start the GUI as if -g were supplied in the command used to launch Topographica. |
source code
|
|
|
|
g_action(option,
opt_str,
value,
parser)
Callback function for the -g option. |
source code
|
|
|
|
c_action(option,
opt_str,
value,
parser)
Callback function for the -c option. |
source code
|
|
|
|
auto_import_commands()
Import the contents of all files in the topo/commands/ directory. |
source code
|
|
|
|
a_action(option,
opt_str,
value,
parser)
Callback function for the -a option. |
source code
|
|
|
|
exec_startup_files()
Execute startup files, looking at appropriate locations for many different platforms. |
source code
|
|
|
|
process_argv(argv)
Process command-line arguments (minus argv[0]!), rearrange and execute. |
source code
|
|