Conversation
…dle_error_variadic
|
This is great @mauzey1. Just thinking a little about this, we have 3 use cases to account for
It also seems like the Lines 119 to 152 in 4e7f1f3 The behaviour from CMOR 3.14.1 onwards requires the user to provide a So following the examples above, can we augment with even more explicit error messages, as below please (I have trimmed out some empty lines etc, just for brevity in this issue (please leave them in the error block - makes it easier and less clustered to read): Case CMIP6* Case CMIP7 Do we need an example for the @taylor13 ping |
|
@durack1 I'm seeing three changes being asked for in #915 (comment). I have them listed below with some accompanying questions.
|
…if the user-defined frequency doesn't match the variable definition's frequency
…if none are defined in the CV or variable table; Modify interval check error messages
…nt out-of-bounds array access
…s-to-dataset-frequency-and-time-interval-errors
|
@durack1 I have updated this pull request with changes to the error/warning message structure. Below are some examples. An example when the user doesn't specify a frequency but the interval information comes from the variable table. The error occurs when the time axis is defined. Here's when the error occurs when passing the time values via If the user doesn't provide a frequency when using CMIP7 tables, which don't have frequencies for their variable entries. There are now frequencies built into CMOR that users can select. If the user provides a frequency that differs from the table's variable entry frequency, CMOR will warn the user of the mismatch and prioritize the table's frequency. Minor bug fix: Lines 1090 to 1095 in 9beeee2 |
Resolves #913
This will change the error/warning message printed by the time interval check.
If the user doesn't specify a
frequencyattribute but the approximate time interval is set through the variable tables, then the following message is printed when an error occurs.If the frequency is specified, then it will look like the following.