Runtime Parameters Language

Handles FLASH’s runtime parameter file domain-specific language. Since this language is basically a key-value store, we translate such files to/from Python dictionaries. An AST representation is not needed.

flash.dsl.runtime_parameters.py_form(pardict)[source]

Takes a dictionary of runtime parameters and returns a new dictionary whose values are in a canonically Python form.

flash.dsl.runtime_parameters.par_form(pydict)[source]

Takes a Python dictionary and returns a new dictionary whose values are in runtime parameters form.

flash.dsl.runtime_parameters.load(parfile)[source]

Loads a FLASH runtime parameter file, such as flash.par, and returns a Python dictionary.

flash.dsl.runtime_parameters.dump(pydict, parfile='flash.par', mode='w')[source]

Writes a FLASH runtime parameter file, such as flash.par, from a Python dictionary. Such dictionaries mus be fairly simple as the runtime parameters file specification is not very sophisticatd.

Previous topic

domain specific languages

Next topic

Configuration Language

This Page