Skip to content

Commit

Permalink
Updates for pvlib 0.8.0 (#116)
Browse files Browse the repository at this point in the history
* update sapm iam call

* bump pvlib to >=0.7.0,<0.9.0

* 1.5.1 whatsnew file
  • Loading branch information
kandersolar authored Mar 24, 2021
1 parent bdd9a3d commit 17bee34
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 2 deletions.
1 change: 1 addition & 0 deletions docs/sphinx/whatsnew.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ What's New

These are new features and improvements of note in each release.

.. include:: whatsnew/v1.5.1.rst
.. include:: whatsnew/v1.5.0.rst
.. include:: whatsnew/v1.4.1.rst
.. include:: whatsnew/v1.4.0.rst
Expand Down
12 changes: 12 additions & 0 deletions docs/sphinx/whatsnew/v1.5.1.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
.. _whatsnew_151:

v1.5.1 (DATE XX, 2021)
======================

Update pvlib dependency from ``pvlib>=0.6.0,<0.8.0`` to ``pvlib>=0.7.0,<0.9.0`` (:ghpull:`116`)


Contributors
------------
* Marc Anoma (:ghuser:`anomam`)
* Kevin Anderson (:ghuser:`kanderso-nrel`)
2 changes: 1 addition & 1 deletion pvfactors/viewfactors/aoimethods.py
Original file line number Diff line number Diff line change
Expand Up @@ -681,6 +681,6 @@ def fn(angles):
# Transform the inputs for the SAPM function
angles = np.where(angles >= 90, angles - 90, 90. - angles)
# Use pvlib sapm aoi loss method
return pvlib.pvsystem.sapm_aoi_loss(angles, pvmodule, upper=1.)
return pvlib.iam.sapm(angles, pvmodule, upper=1.)

return fn
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
pvlib>=0.6.0,<0.8.0
pvlib>=0.7.0,<0.9.0
shapely>=1.6.4.post2
matplotlib
future
Expand Down

0 comments on commit 17bee34

Please sign in to comment.