Skip to content
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
2 changes: 2 additions & 0 deletions docs/sphinx/source/whatsnew/v0.9.0.rst
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,7 @@ Bug fixes
* Corrected an error affecting :py:func:`~pvlib.clearsky.detect_clearsky`
when data time step is not one minute. Error was introduced in v0.8.1.
(:issue:`1241`, :pull:`1242`)
* Corrected :py:func:`~pvlib.solarposition.spa_python` to avoid a future warning. (:pull:`1256`)

Testing
~~~~~~~
Expand Down Expand Up @@ -212,3 +213,4 @@ Contributors
* Miguel Sánchez de León Peque (:ghuser:`Peque`)
* Joe Ranalli (:ghuser:`jranalli`)
* Chas Schweizer (:ghuser:`cpr-chas`)
* Yoann Louvet (:ghuser:`YoannUniKS`)
2 changes: 1 addition & 1 deletion pvlib/solarposition.py
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,7 @@ def spa_python(time, latitude, longitude,
except (TypeError, ValueError):
time = pd.DatetimeIndex([time, ])

unixtime = np.array(time.astype(np.int64)/10**9)
unixtime = np.array(time.view(np.int64)/10**9)

spa = _spa_python_import(how)

Expand Down