Skip to content

Commit b0c96aa

Browse files
authored
Merge pull request #5 from pvlib/master
update form pvlib's master
2 parents ae6de4f + 72a7144 commit b0c96aa

File tree

2 files changed

+28
-28
lines changed

2 files changed

+28
-28
lines changed
Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,13 @@
11
.. _whatsnew_0510:
22

3-
v0.5.1 (?, 2017)
4-
------------------------
3+
v0.5.1 (October 17, 2017)
4+
-------------------------
55

66
API Changes
77
~~~~~~~~~~~
8-
*
9-
10-
Bug fixes
11-
~~~~~~~~~
12-
* Remove condition causing Overflow warning from clearsky.haurwitz
13-
* modelchain.basic_chain now correctly passes 'solar_position_method'
14-
arg to solarposition.get_solarposition
15-
* Fixed: `Variables and Symbols extra references not available <https://github.com/pvlib/pvlib-python/issues/380>`_
16-
* Removed unnecessary calculations of alpha_prime in spa.solar_position_numpy
17-
and spa.solar_position_loop
18-
* Fixed args mismatch for solarposition.pyephem call
19-
from solarposition.get_solarposition with method='pyephem'
20-
arg to solarposition.get_solarposition (:issue:`370`)
21-
* ModelChain.prepare_inputs and ModelChain.complete_irradiance now
22-
correctly pass the 'solar_position_method' argument to
23-
solarposition.get_solarposition (:issue:`377`)
8+
* `pvsystem.v_from_i` and `pvsystem.i_from_v` functions now accept
9+
resistance_series = 0 and/or resistance_shunt = numpy.inf as inputs
10+
(:issue:`340`)
2411

2512
Enhancements
2613
~~~~~~~~~~~~
@@ -32,18 +19,30 @@ Enhancements
3219
resistance_series and/or resistance_shunt may still cause issues with the
3320
implicit solver (:issue:`340`)
3421

35-
API Changes
36-
~~~~~~~~~~~
37-
* `pvsystem.v_from_i` and `pvsystem.i_from_v` functions now accept
38-
resistance_series = 0 and/or resistance_shunt = numpy.inf as inputs
39-
(:issue:`340`)
22+
Bug fixes
23+
~~~~~~~~~
24+
* Remove condition causing Overflow warning from clearsky.haurwitz
25+
(:issue:`363`)
26+
* modelchain.basic_chain now correctly passes 'solar_position_method'
27+
arg to solarposition.get_solarposition (:issue:`370`)
28+
* Fixed: `Variables and Symbols extra references not available
29+
<https://github.com/pvlib/pvlib-python/issues/380>`_ (:issue:`380`)
30+
* Removed unnecessary calculations of alpha_prime in spa.solar_position_numpy
31+
and spa.solar_position_loop (:issue:`366`)
32+
* Fixed args mismatch for solarposition.pyephem call
33+
from solarposition.get_solarposition with method='pyephem'
34+
arg to solarposition.get_solarposition (:issue:`370`)
35+
* ModelChain.prepare_inputs and ModelChain.complete_irradiance now
36+
correctly pass the 'solar_position_method' argument to
37+
solarposition.get_solarposition (:issue:`377`)
38+
* Fixed usage of inplace parameter for tmy._recolumn (:issue:`342`)
4039

4140
Documentation
4241
~~~~~~~~~~~~~
4342
* Doc string of modelchain.basic_chain was updated to describe args
44-
more accurately
43+
more accurately. (:issue:`370`)
4544
* Doc strings of `singlediode`, `pvsystem.v_from_i`, and `pvsystem.i_from_v`
46-
were updated to describe acceptable input arg ranges
45+
were updated to describe acceptable input arg ranges. (:issue:`340`)
4746

4847
Testing
4948
~~~~~~~
@@ -57,3 +56,4 @@ Contributors
5756
* KonstantinTr
5857
* Will Holmgren
5958
* Mark Campanelli
59+
* DaCoEx

pvlib/tmy.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ def readtmy3(filename=None, coerce_year=None, recolumn=True):
187187
index_col='datetime')
188188

189189
if recolumn:
190-
_recolumn(data) # rename to standard column names
190+
data = _recolumn(data) # rename to standard column names
191191

192192
data = data.tz_localize(int(meta['TZ']*3600))
193193

@@ -213,7 +213,7 @@ def _parsedate(ymd, hour, year=None):
213213
return true_date
214214

215215

216-
def _recolumn(tmy3_dataframe, inplace=True):
216+
def _recolumn(tmy3_dataframe):
217217
"""
218218
Rename the columns of the TMY3 DataFrame.
219219
@@ -251,7 +251,7 @@ def _recolumn(tmy3_dataframe, inplace=True):
251251

252252
mapping = dict(zip(raw_columns.split(','), new_columns))
253253

254-
return tmy3_dataframe.rename(columns=mapping, inplace=True)
254+
return tmy3_dataframe.rename(columns=mapping)
255255

256256

257257
def readtmy2(filename):

0 commit comments

Comments
 (0)