-
Notifications
You must be signed in to change notification settings - Fork 39
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
Error message recommends unsupported option #342
Comments
I think a more informative error could be raised, but this looks like a date parsing issue rather than an issue with the units (cftime does not know how to interpret
Switching to
|
Unrelated, but I couldn't help but notice in your example that you are passing a
|
Thank you @spencerkclark ! Clearly I had misunderstood what
Yes the correct usage would have been more obvious with an example.
This behaviour still seems to me to be inconsistent with the docstring though, which says
|
Great, I'm glad you got what you needed to working!
|
When I try to use the
num2date
function to compute "years since ..." it recommends that I can usecommon_years
as the unit as long as I setcalendar='noleap'
. However this doesn't seem to work (with an opaque error), and is also inconsistent with the docstring fornum2date
which saysEither the error message or the docstring must be incorrect.
cftime 1.6.3
python 3.10
See screenshot above
The text was updated successfully, but these errors were encountered: