From 09348d48eb10347c2c0ade6c9d5261214fb86b8d Mon Sep 17 00:00:00 2001 From: "Adam R. Jensen" <39184289+AdamRJensen@users.noreply.github.com> Date: Wed, 28 Jun 2023 13:40:58 +0200 Subject: [PATCH] Update tmy.py --- pvlib/iotools/tmy.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/pvlib/iotools/tmy.py b/pvlib/iotools/tmy.py index 90358ed105..81fa4905d3 100644 --- a/pvlib/iotools/tmy.py +++ b/pvlib/iotools/tmy.py @@ -24,8 +24,8 @@ } -def read_tmy3(filename, coerce_year=None, map_variables=None, recolumn=None, - encoding=None): +def read_tmy3(filename, coerce_year=None, recolumn=None, encoding=None, + map_variables=None): """Read a TMY3 file into a pandas dataframe. Note that values contained in the metadata dictionary are unchanged @@ -44,9 +44,6 @@ def read_tmy3(filename, coerce_year=None, map_variables=None, recolumn=None, If supplied, the year of the index will be set to `coerce_year`, except for the last index value which will be set to the *next* year so that the index increases monotonically. - map_variables : bool, default None - When True, renames columns of the DataFrame to pvlib variable names - where applicable. See variable :const:`VARIABLE_MAP`. recolumn : bool (deprecated, use map_variables instead) If ``True``, apply standard names to TMY3 columns. Typically this results in stripping the units from the column name. @@ -56,6 +53,9 @@ def read_tmy3(filename, coerce_year=None, map_variables=None, recolumn=None, be necessary to specify an alternative encoding, e.g., for SolarAnywhere TMY3 files the encoding should be 'iso-8859-1'. Users may also consider using the 'utf-8-sig' encoding. + map_variables : bool, default None + When True, renames columns of the DataFrame to pvlib variable names + where applicable. See variable :const:`VARIABLE_MAP`. Returns -------