Skip to content

Error message recommends unsupported option #342

@TomNicholas

Description

@TomNicholas

When I try to use the num2date function to compute "years since ..." it recommends that I can use common_years as the unit as long as I set calendar='noleap'. However this doesn't seem to work (with an opaque error), and is also inconsistent with the docstring for num2date which says

common_years since is allowed only for the 365_day calendar

Screenshot 2024-06-19 at 11 15 24 AM

Either the error message or the docstring must be incorrect.


To report a non-security related issue, please provide:

  • the version of the software with which you are encountering an issue

cftime 1.6.3

  • environmental information (i.e. Operating System, compiler info, java version, python version, etc.)

python 3.10

  • a description of the issue with the steps needed to reproduce it

See screenshot above

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions