Package topo :: Package misc :: Module genexamples
[hide private]
[frames] | no frames]

Module genexamples

source code

Commands for running the examples files in various ways.

Like a Makefile: contains a list of targets (and groups of targets) that specify various commands to run.

E.g.

topographica -c 'from topo.misc.genexamples import generate; generate(targets=["all_quick","saved_examples"])'

Runs the 'all_quick' target if called without any arguments:

topographica -c 'from topo.misc.genexamples import generate; generate()'

To add new single targets, add to the targets dictionary; for groups of targets, add to the group_targets dictionary.

$Id$


Version: $Revision$

Classes [hide private]
  generate
Functions [hide private]
 
snapshot(filename)
Return a command for saving a snapshot named filename.
source code
 
or_analysis()
Return a command for orientation analysis.
source code
 
retinotopy_analysis()
Return a command for retinotopy analysis.
source code
 
run(examples, script_name, density=None, commands=['topo.sim.run(1)'])
Return a complete command for running the given topographica example script (i.e.
source code
 
copy_examples() source code
 
print_examples_dir(**kw) source code
 
find_examples(specified_examples=None, dirs=None) source code
 
_stuff(specified_targets) source code
Variables [hide private]
  scripts = {'gcal': 'gcal.ty', 'gcal_10000.typ': 'gcal.ty', 'hi...
  __package__ = 'topo.misc'
Function Details [hide private]

run(examples, script_name, density=None, commands=['topo.sim.run(1)'])

source code 
Return a complete command for running the given topographica example script (i.e. a script in the examples/ directory) at the given density, along with any additional commands.

Variables Details [hide private]

scripts

Value:
{'gcal': 'gcal.ty',
 'gcal_10000.typ': 'gcal.ty',
 'hierarchical': 'hierarchical.ty',
 'lissom_fsa': 'lissom_fsa.ty',
 'lissom_fsa_10000.typ': 'obermayer_pnas90.ty',
 'lissom_oo_or': 'lissom_oo_or.ty',
 'lissom_oo_or_10000.typ': 'lissom_oo_or.ty',
 'lissom_or': 'lissom_or.ty',
...