Package gavo :: Package stc :: Module stcsdefaults
[frames] | no frames]

Module stcsdefaults

source code

Functions for adding defaults to STC-S concrete syntax trees.

Default addition is governed by the two dicts at the bottom of the module:

Functions
 
getSpaceFlavor(node) source code
 
getSpaceUnit(node) source code
 
getEquinox(node) source code
 
getRedshiftUnit(node) source code
Variables
  defaults = {'redshift': [('redshiftType', 'REDSHIFT'), ('unit'...
  defaultingFunctions = {'redshift': <__builtin__.function objec...
  undefaultingFunctions = {'redshift': <__builtin__.function obj...
  __package__ = None
hash(x)
Variables Details

defaults

Value:
{'redshift': [('redshiftType', 'REDSHIFT'),
              ('unit', <__builtin__.function object>),
              ('dopplerdef', 'OPTICAL')],
 'space': [('flavor', <__builtin__.function object>),
           ('equinox', <__builtin__.function object>),
           ('unit', <__builtin__.function object>)],
 'spectral': [('unit', 'Hz')],
 'time': [('unit', 's')],
...

defaultingFunctions

Value:
{'redshift': <__builtin__.function object>,
 'space': <__builtin__.function object>,
 'spectral': <__builtin__.function object>,
 'time': <__builtin__.function object>,
 'velocity': <__builtin__.function object>}

undefaultingFunctions

Value:
{'redshift': <__builtin__.function object>,
 'space': <__builtin__.function object>,
 'spectral': <__builtin__.function object>,
 'time': <__builtin__.function object>,
 'velocity': <__builtin__.function object>}