Package mystic :: Module python_map

Module python_map

source code

Defaults for mapper and launcher. These should be available as a minimal (dependency-free) pure-python install from pathos:

   - serial_launcher:   syntax for standard python execution
   - python_map:        wrapper around the standard python map
   - carddealer_mapper: the carddealer map strategy
Functions
 
serial_launcher(kdict={})
prepare launch for standard execution syntax: (python) (file) (progargs)
source code
 
python_map(func, *arglist, **kwds)
...
source code
 
carddealer_mapper()
deal work out to all available resources, then deal out the next new work item when a node completes its work
source code
Variables
  defaults = {'timelimit': '00:05:00', 'file': '', 'progname': '...
Function Details

serial_launcher(kdict={})

source code 

prepare launch for standard execution
syntax:  (python) (file) (progargs)

NOTES:
    run non-python commands with: {'python':'', ...} 
    

python_map(func, *arglist, **kwds)

source code 
...

maps function 'func' across arguments 'arglist'.  Provides the
standard python map function, however also accepts **kwds in order
to conform with the pathos.pyina.map interface.

Further Input: [***disabled***]
    nnodes -- the number of parallel nodes
    launcher -- the launcher object
    mapper -- the mapper object
    timelimit -- string representation of maximum run time (e.g. '00:02')
    queue -- string name of selected queue (e.g. 'normal')


Variables Details

defaults

Value:
{'timelimit': '00:05:00', 'file': '', 'progname': '', 'outfile': './re\
sults.out', 'errfile': './errors.out', 'jobfile': './jobid', 'queue': \
'', 'python': '`which python`', 'nodes': '1', 'progargs': ''}