Skip to content

Commit

Permalink
improve Location docstrings (#2123)
Browse files Browse the repository at this point in the history
  • Loading branch information
kandersolar authored Jul 10, 2024
1 parent 4354eb9 commit 048b70f
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions pvlib/location.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,8 @@ def from_tmy(cls, tmy_metadata, tmy_data=None, **kwargs):
Parameters
----------
tmy_metadata : dict
Returned from tmy.readtmy2 or tmy.readtmy3
Returned from :py:func:`~pvlib.iotools.read_tmy2` or
:py:func:`~pvlib.iotools.read_tmy3`
tmy_data : DataFrame, optional
Optionally attach the TMY data to this object.
Expand Down Expand Up @@ -145,14 +146,13 @@ def from_epw(cls, metadata, data=None, **kwargs):
Parameters
----------
metadata : dict
Returned from epw.read_epw
Returned from :py:func:`~pvlib.iotools.read_epw`
data : DataFrame, optional
Optionally attach the epw data to this object.
Returns
-------
Location object (or the child class of Location that you
called this method from).
Location
"""

latitude = metadata['latitude']
Expand Down Expand Up @@ -282,7 +282,7 @@ def get_airmass(self, times=None, solar_position=None,
"""
Calculate the relative and absolute airmass.
Automatically chooses zenith or apparant zenith
Automatically chooses zenith or apparent zenith
depending on the selected model.
Parameters
Expand Down

0 comments on commit 048b70f

Please sign in to comment.