Skip to content

Commit 054dd35

Browse files
Pratham ChauhanPratham Chauhan
Pratham Chauhan
authored and
Pratham Chauhan
committed
solved failing tests
1 parent a8977fa commit 054dd35

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

pvlib/iotools/tmy.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ def read_tmy3(filename, coerce_year=None, map_variables=None, recolumn=True):
2525
If supplied, the year of the index will be set to `coerce_year`, except
2626
for the last index value which will be set to the *next* year so that
2727
the index increases monotonically.
28-
map_variables : bool, default None
28+
map_variables : bool, default None
2929
If ``True``, apply standard names to TMY3 columns. Typically this
3030
results in stripping the units from the column name and issues
3131
deprecationWarning for recolumn
@@ -211,10 +211,9 @@ def read_tmy3(filename, coerce_year=None, map_variables=None, recolumn=True):
211211
data = _recolumn(data)
212212
elif map_variables is None:
213213
data = _recolumn(data)
214-
warnings.warn("recolumn parameter will be retired starting version 0.9.5, please"
215-
"use map_variables parameter instead.",
216-
DeprecationWarning)
217-
214+
warnings.warn(
215+
"recolumn parameter will be retired starting version 0.9.5, please"
216+
"use map_variables parameter instead.",DeprecationWarning)
218217

219218
data = data.tz_localize(int(meta['TZ'] * 3600))
220219

0 commit comments

Comments
 (0)