Skip to content

location.py docstrings: fix outdated references, typo #2123

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 10, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Comment on lines -154 to +155
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm guessing this was a relic of the LocalizedPVSystem days

"""

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
Loading