-
Notifications
You must be signed in to change notification settings - Fork 168
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Consolidate python configuration dictionaries #2839
Consolidate python configuration dictionaries #2839
Conversation
I still need to repeat the XML tests on WCOSS2, Hera, and Hercules, but this should be ready for review. When ready, I don't think this needs to go through CI or, at most, just through the setup stage. |
* origin/develop: support ATM forecast only on Azure (NOAA-EMC#2827) Convert staging job to python and yaml (NOAA-EMC#2651) Fixed test on UNAVAILBLE in python Rocoto check (NOAA-EMC#2842)
I was able to repeat the XML tests on all platforms. All were identical. This PR is now ready to be reviewed. |
@aerorahul I just recalled the conversation yesterday about the |
@aerorahul The no-RUN configs key has been renamed now. |
# Save the configuration so we can source the config files when | ||
# determining task resources | ||
self.conf = conf | ||
self._base = conf.parse_config('config.base') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't like making this an object field. This version should not be needed beyond initialization. All later uses should be using self.configs[run]['base']
.
self._base = conf.parse_config('config.base') | |
base = conf.parse_config('config.base') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Alright, I removed the _base
attribute from the AppConfig
class and subclasses. _no_run
is no longer referenced anywhere outside of _init_finalize
. This is still required to determine which run
s are valid for the experiment.
* origin/develop: Fix gdas build on Gaea and add Gaea to available CI list (NOAA-EMC#2857) Support ATM forecast only on Google (NOAA-EMC#2832) Add GEFS C48 support on AWS (NOAA-EMC#2818) Update omega calculation (NOAA-EMC#2751) Add snow DA update and recentering for the EnKF forecasts (NOAA-EMC#2690)
* origin/develop: Add 3 and 9 hr increment files to IC staging (NOAA-EMC#2876) Add diffusion/diag B for aerosol DA and some other needed changes (NOAA-EMC#2738) Correct ocean `MOM.res_#` stage copy (NOAA-EMC#2868) Support coupling on AWS (NOAA-EMC#2859) Add JEDI ATM lgetkf observer and solver jobs (NOAA-EMC#2833)
Deferring any final elimination of the no_run to a future PR. |
|
Automated global-workflow Testing Results:
|
|
Automated global-workflow Testing Results:
|
CI Passed on Hera in Build# 4
|
CI Passed on Orion in Build# 3
|
All CI Test Cases Passed on Wcoss2:
|
Experiment C96_atm3DVar_extended_92dfc754 UNKNOWN on Wcoss2 at 09/18/24 02:00:29 PM Error logs:
Follow link here to view the contents of the above file(s): (link) |
Description
This modifies the way the
config
dictionary is constructed and referenced. Rather than updating a single configuration dictionary with eachRUN
, aRUN
-based dictionary ofconfig
dictionaries is created and referenced by the appropriateRUN
when calculating resources.This also makes the methods that were hidden before #2727 hidden again.
Resolves #2783
Type of change
Change characteristics
How has this been tested?
XMLs for all CI tests were identical to develop on
Checklist