Skip to content

Set leap_day=True as default in pvlib.iotools.get_psm3() #1481

@williamhobbs

Description

@williamhobbs

Is your feature request related to a problem? Please describe.
Several functions require equal timesteps with no gaps (e.g., pvlib.temperature.prilliman and detect_clearsky). Having weather data that excludes leap day will cause an error. Specifically, using pvlib.iotools.get_psm3 for a leap year with the default leap_day=True would be a common reason for encountering this error.

Describe the solution you'd like
As suggested by @adriesse here #1476 (comment), perhaps the default should be changed to leap_day=True?

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Additional context
Related to #1476.

On the topic of "is this a good idea", some comments from issue 1476:

"I wonder if there are any compelling reasons to keep it as False, other than the fact that other tools (e.g., NREL SAM) can't handle leap day."

(by me)

"I suspect leap_day=False is rooted in matching the PSM3 API's decision to set it False by default."

(by @kanderso-nrel)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions