The error message when the reference_period arg is not valid is not clear and can confuse the end-user (AttributeError: 'IndexVariable' object has no attribute 'month').
What did you expect to happen? Are there are possible answers you came across?
There should be logic to detect whether there are time coordinates that cover the entire reference period. If there are missing time coordinates, raise an error early on about this (e.g.,"Invalid reference_period selected. The time coordinates for this dataset span <START, END>."
What happened?
The error message when the
reference_period
arg is not valid is not clear and can confuse the end-user (AttributeError: 'IndexVariable' object has no attribute 'month'
).What did you expect to happen? Are there are possible answers you came across?
There should be logic to detect whether there are time coordinates that cover the entire reference period. If there are missing time coordinates, raise an error early on about this (e.g.,
"Invalid reference_period selected. The time coordinates for this dataset span <START, END>."
Minimal Complete Verifiable Example (MVCE)
Relevant log output
Anything else we need to know?
No response
Environment
Latest version of
main
and stable version (0.7.0)