Conversation
forsyth2
left a comment
There was a problem hiding this comment.
It appears the behavior of config.validate(validator) has changed significantly.
| active = True | ||
| walltime = "00:30:00" | ||
| years = "1850:1854:2", "1850:1854:4", | ||
| years = "1850:1854:2", "1850:1854:4" |
There was a problem hiding this comment.
Launches the following:
climo_atm_monthly_180x360_aave_1850-1851
climo_atm_monthly_180x360_aave_1852-1853
climo_atm_monthly_180x360_aave_1850-1853
climo_atm_monthly_diurnal_8xdaily_180x360_aave_1850-1851
climo_atm_monthly_diurnal_8xdaily_180x360_aave_1852-1853
climo_atm_monthly_diurnal_8xdaily_180x360_aave_1850-1853
Both the "1850:1854:2" (2-year increment) jobs and the "1850:1854:4" (4-year increment) jobs are launched successfully. Does this mean the trailing comma is no longer a requirement of string_list parameters?
|
|
||
| [ts] | ||
| active = True | ||
| active = 4 |
There was a problem hiding this comment.
Causes ValueError: Invalid value 4 for 'active' at runtime rather than a failed configuration validation.
| active = 4 | ||
| walltime = "00:30:00" | ||
| years = "1850:1854:2", | ||
| years = "1850:1854:2" |
There was a problem hiding this comment.
If active = True above, then the error we get here is ValueError: Error interpreting years 1. climo's multiple year sets above no longer appear to need a trailing comma. However, this error seems to indicate at least one comma must be present in a string_list parameter.
| validator = Validator() | ||
|
|
||
| result = config.validate(validator) | ||
| print(type(result)) |
There was a problem hiding this comment.
result is a bool now. In the past, it has historically been some sort of dictionary or dictionary-like object. For example, from a validation failure discussed in a 3/22 Slack message, we had:
Validation results={'e3sm_diags': True, 'e3sm_diags_vs_model': True, 'mpas_analysis': True, 'default': True, 'climo': {'qos': True, 'nodes': True, 'walltime': True, 'input_files': True, 'fre
quency': True, 'mapping_file': True, 'grid': True, 'years': False, 'exclude': True, 'vars': True, 'atm_monthly_180x360_aave': True}, 'ts': True, 'tc_analysis': True, 'amwg': True, 'global_ti
me_series': {'input_subdir': True, 'qos': True, 'nodes': True, 'walltime': True, 'color': True, 'years': True, 'ts_num_years': True, 'figstr': True, 'moc_file': True, 'experiment_name': True
, 'ts_years': False, 'climo_years': False, 'atmosphere_only': True}}
@golaz See above comments regarding new issues with the validator. I can't find too much about the |
8254cfa to
32680ef
Compare
|
I turned my branch of this into Ideally, we would get the validator working again (#319), at which point we can improve its error message (#281/#320), so I'm leaving this pull request open, but removing it from the December 2022 project. |
Improve validation error. Resolves #281. Inadvertently discovered #319 in the process.