Skip to content

pvlib v 0.6.0.2 TypeError: ineichen() got an unexpected keyword argument 'solar_postion' #660

Description

@itprorh66

In using the location.get_clearsky method with calling parameters (times, model='ineichen', solar_postion= solpos, dni_extra=None).

When executing the statement at line 219 which reads:
cs = clearsky.ineichen(apparent_zenith, airmass_absolute,
linke_turbidity, altitude=self.altitude,
dni_extra=dni_extra, **kwargs)
the error: TypeError: ineichen() got an unexpected keyword argument 'solar_postion' is produced.

I believe this error is the result of the fact the called function, located at clearsky.py line 18, does not include the **kwargs attribute.

In earlier versions of pvlib, the statement at line 219 of location.py was as shown below:
cs = clearsky.ineichen(apparent_zenith, airmass_absolute,
linke_turbidity, altitude=self.altitude,
dni_extra=dni_extra)

Versions:

  • pvlib.__version__: 0.6.02

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