Skip to content

Commit 250b013

Browse files
Add JEDI-testing application testing capability to JEDI Python class (NOAA-EMC#4621)
This adds the capability in the JEDI Python class to turn on JEDI application tests by adding a `app_test_yaml` to its configuration file. Previously application tests were turned on in the "JCB prototype YAML" for various JEDI-based GW jobs. The YAMLs were removed in NOAA-EMC/GDASApp#1999 in order to consolidate configuration files in line with the JEDI class refactoring done in NOAA-EMC#4306.
1 parent fd75304 commit 250b013

2 files changed

Lines changed: 7 additions & 2 deletions

File tree

sorc/gdas.cd

ush/python/pygfs/jedi/jedi.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@
1616
logger = getLogger(__name__.split('.')[-1])
1717

1818
required_jedi_keys = ['jedi_app_name', 'rundir', 'exe_src', 'mpi_cmd', 'jcb_base_yaml']
19-
optional_jedi_keys = ['jedi_args', 'jcb_algo', 'jcb_algo_yaml', 'obs_list_yaml', 'bias_files_yaml']
19+
optional_jedi_keys = ['jedi_args', 'jcb_algo', 'jcb_algo_yaml',
20+
'obs_list_yaml', 'bias_files_yaml', 'app_test_yaml']
2021

2122

2223
class Jedi:
@@ -98,6 +99,10 @@ def __init__(self, config: Dict[str, Any], task_config: AttrDict) -> None:
9899
if self.jedi_config.obs_list_yaml is not None:
99100
self.jcb_config['observations'] = parse_j2yaml(self.jedi_config.obs_list_yaml, task_config)['observations']
100101

102+
# Include test reference YAML in JCB config if app_test_yaml specified
103+
if task_config.DO_TEST_MODE and self.jedi_config.app_test_yaml is not None:
104+
self.jcb_config.update(parse_j2yaml(self.jedi_config.app_test_yaml, task_config))
105+
101106
# Set object attributes
102107
# ---------------------
103108

0 commit comments

Comments
 (0)