cftime icon indicating copy to clipboard operation
cftime copied to clipboard

Error message recommends unsupported option

Open TomNicholas opened this issue 8 months ago • 4 comments

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

TomNicholas avatar Jun 19 '24 15:06 TomNicholas