Skip to content

Error in xarray/doc/examples/monthly-means.rst line 86 ? #3465

@mickaellalande

Description

@mickaellalande

I have made a pull request (Error in leap year? #3464) but I don't know how it works.
I guess there is a mistake in xarray/doc/examples/monthly-means.rst line 86 :

I've tried this script; however, it adds +1 to all months of the leap years. It sounds like an error, or I am wrong? So I wrote the condition "and month == 2" line 86 so that only the month of February gets +1.

So I propose :

if leap_year(year, calendar=calendar) and month == 2:

Instead of:

if leap_year(year, calendar=calendar):

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