@@ -27,8 +27,8 @@ def read_tmy3(filename, coerce_year=None, map_variables=None, recolumn=True):
2727 the index increases monotonically.
2828 map_variables : bool, default None
2929 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
3232 recolumn : bool, default True
3333 If ``True``, apply standard names to TMY3 columns. Typically this
3434 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):
203203 # NOTE: as of pvlib-0.6.3, min req is pandas-0.18.1, so pd.to_timedelta
204204 # unit must be in (D,h,m,s,ms,us,ns), but pandas>=0.24 allows unit='hour'
205205 data .index = data_ymd + pd .to_timedelta (shifted_hour , unit = 'h' )
206-
206+
207207 if map_variables :
208208 data = _recolumn (data ) # rename to standard column names
209209 elif recolumn :
210210 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 )
214214 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 )
216217
217218
218219 data = data .tz_localize (int (meta ['TZ' ] * 3600 ))
0 commit comments