-
Notifications
You must be signed in to change notification settings - Fork 286
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
Time units of 'months' or 'years' cause print() to ValueError #2793
Comments
Thanks for raising this. We'll need to do a release of cf_units before #2354 can be merged, once that's done this issue will be fixed. |
Looks like #2354 fixed the printing of coordinates, but not the printing of a cube with a scalar time coordinate: import iris
print(iris.__version__)
cube = iris.cube.Cube(1)
cube.add_aux_coord(iris.coords.DimCoord(1, standard_name='time', units='years since 2020-03-23'))
print(cube)
|
In order to maintain a backlog of relevant issues, we automatically label them as stale after 500 days of inactivity. If this issue is still important to you, then please comment on this issue and the stale label will be removed. Otherwise this issue will be automatically closed in 28 days time. |
SciTools/cf-units#279 may well address this. I vote we leave this open till that is done. |
In order to maintain a backlog of relevant issues, we automatically label them as stale after 500 days of inactivity. If this issue is still important to you, then please comment on this issue and the stale label will be removed. Otherwise this issue will be automatically closed in 28 days time. |
This stale issue has been automatically closed due to a lack of community activity. If you still care about this issue, then please either:
|
If the units of a time coord are months or years, printing the cube fails with
It looks like this was addressed back in Feb (https://groups.google.com/forum/#!topic/scitools-iris/c8B75mRQ7JU), with two identically-named PRs (SciTools/cf-units#72 and #2354, one of which is merged, but this still breaks in v1.13.0
The text was updated successfully, but these errors were encountered: