Run API

runana.input_file_handling.filter_inp_file_upname(inp_file_in, inp_file_out, replace_with_these)

Replaces elements in inp_file_in and places the result in inp_file_out

replace_with_these is a dict with entries of the form {‘Name of parameter’:value to replace with}

This version replaces entries that is one line below a string matching Name of parameter, in the same position as the string

runana.input_file_handling.filter_inp_file_f90nml(inp_file_in, inp_file_out, replace_with_these)

Replaces elements in inp_file_in and places the result in inp_file_out

replace_with_these is a dict with entries of the form {‘Name of parameter’:value to replace with}

This version works on namelist files using the f90nml package

runana.input_file_handling.INP_FILE_FILTERS = {'f90nml': <function filter_inp_file_f90nml>, 'positional': <function filter_inp_file_positional>, 'upname': <function filter_inp_file_upname>}

dict() -> new empty dictionary dict(mapping) -> new dictionary initialized from a mapping object’s

(key, value) pairs
dict(iterable) -> new dictionary initialized as if via:

d = {} for k, v in iterable:

d[k] = v
dict(**kwargs) -> new dictionary initialized with the name=value pairs
in the keyword argument list. For example: dict(one=1, two=2)

Extra functions

Automated convergence testing