Skip to content

Time units of 'months' or 'years' cause print() to ValueError #2793

@samizdis

Description

@samizdis

If the units of a time coord are months or years, printing the cube fails with

ValueError: units must be one of 'seconds', 'minutes', 'hours' or 'days' (or singular version of these), got 'months'

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions