Open danielhuppmann opened 1 week ago
Clarification:
display the warning-list as a DataFrame
Any example of how this would look? And from what I understand, the fallback is always on raising the error if no warning level is specified.
Any example of how this would look?
I'd say as a first step, take the same as
but add a "warning-level" column.
And from what I understand, the fallback is always on raising the error if no warning level is specified.
Correct.
As a next step for scenario validation and vetting, we need to extend the DataValidator class to enable showing a warning instead of raising an error.
My proposed implementation is the following:
If the validation fails and the warning-level is not None, add the value to a warning-list in https://github.com/IAMconsortium/nomenclature/blob/3a76cba2f5baf6c7f54be9d45d40c1a698738f6c/nomenclature/processor/data_validator.py#L96
instead of the error-list.
Does that make sense, @phackstock?