Skip to content

solar_position_method arg passed to basic_chain method wasn't used #370

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 7 commits into from
Sep 8, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions docs/sphinx/source/whatsnew/v0.5.1.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ API Changes
Bug fixes
~~~~~~~~~
* Remove condition causing Overflow warning from clearsky.haurwitz
* modelchain.basic_chain now correctly passes 'solar_position_method' arg to solarposition.get_solarposition
* Doc string of modelchain.basic_chain was updated to describe args more accurately

Enhancements
~~~~~~~~~~~~
Expand All @@ -26,3 +28,4 @@ Testing
Contributors
~~~~~~~~~~~~
* Cliff Hansen
* KonstantinTr
5 changes: 3 additions & 2 deletions pvlib/modelchain.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,10 +80,10 @@ def basic_chain(times, latitude, longitude,
Passed to system.get_irradiance.

solar_position_method : str, default 'nrel_numpy'
Passed to location.get_solarposition.
Passed to solarposition.get_solarposition.

airmass_model : str, default 'kastenyoung1989'
Passed to location.get_airmass.
Passed to atmosphere.relativeairmass.

altitude : None or float, default None
If None, computed from pressure. Assumed to be 0 m
Expand Down Expand Up @@ -129,6 +129,7 @@ def basic_chain(times, latitude, longitude,
longitude,
altitude=altitude,
pressure=pressure,
method=solar_position_method,
**kwargs)

# possible error with using apparent zenith with some models
Expand Down