Skip to content

Broken function call in oedi_9068.py gallery example #2791

@echedey-ls

Description

@echedey-ls

Describe the bug
The gallery example https://pvlib-python.readthedocs.io/en/stable/gallery/system-models/oedi_9068.html
In https://github.com/pvlib/pvlib-python/blob/main/docs/examples/system-models/oedi_9068.py

Here at this call:

psm3, psm3_metadata = pvlib.iotools.get_nsrdb_psm4_conus(latitude, longitude,
                                                         api_key, email,
                                                         year=2019, interval=5,
                                                         parameters=keys,
                                                         map_variables=True,
                                                         leap_day=True)

It produces:
TypeError: get_nsrdb_psm4_conus() got an unexpected keyword argument 'interval'

To Reproduce

Documentation of get_nsrdb_psm4_conus is at https://pvlib-python.readthedocs.io/en/stable/reference/generated/pvlib.iotools.get_nsrdb_psm4_conus.html
No mention of interval parameter.
And example is at https://pvlib-python.readthedocs.io/en/stable/gallery/system-models/oedi_9068.html

Expected behavior
Successful execution, or failure due to invalid credentials.

Screenshots
N/A

Versions:

  • pvlib.__version__: 0.15.2

Additional context
I couldn't trace back if there ever was that parameter to the function. The function seems to be added in #2378.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions