Utilities for writing config files for jobs from environment variables. More...
Functions | |
def | write_config (filename, component_names, include_defaults, fail_on_missing) |
Write a config file from environment variables. More... | |
def | write_config_for_job (job_script, filename, include_defaults, fail_on_missing) |
Write a config file for a specific job script. More... | |
def | _get_job_defaults () |
Get default job class settings. More... | |
Variables | |
parser = argparse.ArgumentParser("config_writer.py") | |
action | |
help | |
nargs | |
cl = parser.parse_args() | |
config = cl.config | |
Utilities for writing config files for jobs from environment variables.
|
private |
Get default job class settings.
Definition at line 63 of file config_writer.py.
def hpsmc.config_writer.write_config | ( | filename, | |
component_names, | |||
include_defaults, | |||
fail_on_missing | |||
) |
Write a config file from environment variables.
filename | name of config file |
component_names | list of components in job |
include_defaults | set true if defaults should be included |
fail_on_missing | if true: method fails if environment variable is missing if false: throws warning if environment variable is missing |
Definition at line 12 of file config_writer.py.
def hpsmc.config_writer.write_config_for_job | ( | job_script, | |
filename, | |||
include_defaults, | |||
fail_on_missing | |||
) |
Write a config file for a specific job script.
job_script | job script |
filename | currently unused |
include_defaults | set true if defaults should be included |
fail_on_missing | if true: method fails if environment variable is missing if false: throws warning if environment variable is missing |
Definition at line 48 of file config_writer.py.
action |
Definition at line 79 of file config_writer.py.
cl = parser.parse_args() |
Definition at line 84 of file config_writer.py.
string config = cl.config |
Definition at line 90 of file config_writer.py.
help |
Definition at line 79 of file config_writer.py.
nargs |
Definition at line 81 of file config_writer.py.
parser = argparse.ArgumentParser("config_writer.py") |
Definition at line 78 of file config_writer.py.