Skip to content

Commit 6561ccb

Browse files
committed
Reverts "filename" parameter rename for consistency
1 parent a110a69 commit 6561ccb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pvlib/iotools/tmy.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
}
2525

2626

27-
def read_tmy3(filename_or_obj, coerce_year=None, map_variables=True, encoding=None):
27+
def read_tmy3(filename, coerce_year=None, map_variables=True, encoding=None):
2828
"""Read a TMY3 file into a pandas dataframe.
2929
3030
Note that values contained in the metadata dictionary are unchanged
@@ -37,7 +37,7 @@ def read_tmy3(filename_or_obj, coerce_year=None, map_variables=True, encoding=No
3737
3838
Parameters
3939
----------
40-
filename_or_obj : str, Path, or file-like object
40+
filename : str, Path, or file-like object
4141
A relative file path or absolute file path.
4242
coerce_year : int, optional
4343
If supplied, the year of the index will be set to ``coerce_year``, except
@@ -188,7 +188,7 @@ def read_tmy3(filename_or_obj, coerce_year=None, map_variables=True, encoding=No
188188
""" # noqa: E501
189189
head = ['USAF', 'Name', 'State', 'TZ', 'latitude', 'longitude', 'altitude']
190190

191-
with _file_context_manager(filename_or_obj, mode="r", encoding=encoding) as fbuf:
191+
with _file_context_manager(filename, mode="r", encoding=encoding) as fbuf:
192192
# header information on the 1st line (0 indexing)
193193
firstline = fbuf.readline()
194194
# use pandas to read the csv file buffer

0 commit comments

Comments
 (0)