@@ -27,8 +27,8 @@ def read_tmy3(filename, coerce_year=None, map_variables=None, recolumn=True):
27
27
the index increases monotonically.
28
28
map_variables : bool, default None
29
29
If ``True``, apply standard names to TMY3 columns. Typically this
30
- results in stripping the units from the column name and issues deprecationWarning
31
- for recolumn
30
+ results in stripping the units from the column name and issues
31
+ deprecationWarning for recolumn
32
32
recolumn : bool, default True
33
33
If ``True``, apply standard names to TMY3 columns. Typically this
34
34
results in stripping the units from the column name.
@@ -203,16 +203,17 @@ def read_tmy3(filename, coerce_year=None, map_variables=None, recolumn=True):
203
203
# NOTE: as of pvlib-0.6.3, min req is pandas-0.18.1, so pd.to_timedelta
204
204
# unit must be in (D,h,m,s,ms,us,ns), but pandas>=0.24 allows unit='hour'
205
205
data .index = data_ymd + pd .to_timedelta (shifted_hour , unit = 'h' )
206
-
206
+
207
207
if map_variables :
208
208
data = _recolumn (data ) # rename to standard column names
209
209
elif recolumn :
210
210
if not map_variables : # silence warning if map_variables is false
211
- data = _recolumn (data )
212
- elif map_variables is None :
213
- data = _recolumn (data )
211
+ data = _recolumn (data )
212
+ elif map_variables is None :
213
+ data = _recolumn (data )
214
214
warnings .warn ("recolumn parameter will be retired starting version 0.9.5, please"
215
- "use map_variables parameter instead." ,DeprecationWarning )
215
+ "use map_variables parameter instead." ,
216
+ DeprecationWarning )
216
217
217
218
218
219
data = data .tz_localize (int (meta ['TZ' ] * 3600 ))
0 commit comments