Skip to content

Commit 048b70f

Browse files
authored
improve Location docstrings (#2123)
1 parent 4354eb9 commit 048b70f

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

pvlib/location.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,8 @@ def from_tmy(cls, tmy_metadata, tmy_data=None, **kwargs):
101101
Parameters
102102
----------
103103
tmy_metadata : dict
104-
Returned from tmy.readtmy2 or tmy.readtmy3
104+
Returned from :py:func:`~pvlib.iotools.read_tmy2` or
105+
:py:func:`~pvlib.iotools.read_tmy3`
105106
tmy_data : DataFrame, optional
106107
Optionally attach the TMY data to this object.
107108
@@ -145,14 +146,13 @@ def from_epw(cls, metadata, data=None, **kwargs):
145146
Parameters
146147
----------
147148
metadata : dict
148-
Returned from epw.read_epw
149+
Returned from :py:func:`~pvlib.iotools.read_epw`
149150
data : DataFrame, optional
150151
Optionally attach the epw data to this object.
151152
152153
Returns
153154
-------
154-
Location object (or the child class of Location that you
155-
called this method from).
155+
Location
156156
"""
157157

158158
latitude = metadata['latitude']
@@ -282,7 +282,7 @@ def get_airmass(self, times=None, solar_position=None,
282282
"""
283283
Calculate the relative and absolute airmass.
284284
285-
Automatically chooses zenith or apparant zenith
285+
Automatically chooses zenith or apparent zenith
286286
depending on the selected model.
287287
288288
Parameters

0 commit comments

Comments
 (0)