Skip to content

Commit

Permalink
Rename no-RUN configs key
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidHuber-NOAA committed Aug 21, 2024
1 parent 59c2002 commit e06d807
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions workflow/applications/applications.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,13 +102,13 @@ def _init_finalize(self, conf: Configuration):
self.configs_names = self._get_app_configs()

# Source the config files for the jobs in the application without specifying a RUN
self.configs = {'_': self._source_configs(conf)}
self.configs = {'_no_run': self._source_configs(conf)}

# Update the base config dictionary base on application
self.configs['_']['base'] = self._update_base(self.configs['_']['base'])
self.configs['_no_run']['base'] = self._update_base(self.configs['_no_run']['base'])

# Save base in the internal state since it is often needed
self._base = self.configs['_']['base']
self._base = self.configs['_no_run']['base']

# Get more configuration options into the class attributes
self.gfs_cyc = self._base.get('gfs_cyc')
Expand Down
2 changes: 1 addition & 1 deletion workflow/rocoto/workflow_xml.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def __init__(self, app_config: AppConfig, rocoto_config: Dict) -> None:
self.rocoto_config = rocoto_config

# Use the generic config.base (without RUN specified)
self._base = self._app_config.configs['_']['base']
self._base = self._app_config.configs['_no_run']['base']

self.preamble = self._get_preamble()
self.definitions = self._get_definitions()
Expand Down

0 comments on commit e06d807

Please sign in to comment.