Skip to content

Commit

Permalink
use update to populate jcb_config with appropriate yaml (NOAA-EMC#2415)
Browse files Browse the repository at this point in the history
  • Loading branch information
RussTreadon-NOAA committed Aug 22, 2024
1 parent 74de6bc commit a8a528f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ush/python/pygfs/task/atmens_analysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ def init_observer(self: Analysis) -> None:
# Setup JEDI YAML file
jcb_config = parse_j2yaml(self.task_config.JCB_BASE_YAML, self.task_config)
jcb_algo_config = parse_j2yaml(self.task_config.JCB_ALGO_YAML, self.task_config)
jcb_config = {**jcb_config, **jcb_algo_config}
jcb_config.update(jcb_algo_config)
jedi_config = render(jcb_config)

self.task_config.jedi_yaml = os.path.join(self.task_config.DATA, f"{self.task_config.RUN}.t{self.task_config.cyc:02d}z.atmens_observer.yaml")
Expand All @@ -237,7 +237,7 @@ def init_solver(self: Analysis) -> None:
# Setup JEDI YAML file
jcb_config = parse_j2yaml(self.task_config.JCB_BASE_YAML, self.task_config)
jcb_algo_config = parse_j2yaml(self.task_config.JCB_ALGO_YAML, self.task_config)
jcb_config = {**jcb_config, **jcb_algo_config}
jcb_config.update(jcb_algo_config)
jedi_config = render(jcb_config)

self.task_config.jedi_yaml = os.path.join(self.task_config.DATA, f"{self.task_config.RUN}.t{self.task_config.cyc:02d}z.atmens_solver.yaml")
Expand Down

0 comments on commit a8a528f

Please sign in to comment.