Skip to content

Commit dac983e

Browse files
committed
lint: flake8 lint
1 parent 15e60b0 commit dac983e

3 files changed

Lines changed: 6 additions & 4 deletions

File tree

pvlib/location.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ class Location:
2323
time zone, and altitude data associated with a particular geographic
2424
location. You can also assign a name to a location object.
2525
26-
Location objects have a time-zone attribute ``tz``, an IANA time-zone string.
26+
Location objects have a time-zone attribute ``tz`` (IANA timezone string).
2727
2828
.. deprecated:: 0.15.2
2929

pvlib/solarposition.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1360,7 +1360,7 @@ def hour_angle(times, longitude, equation_of_time):
13601360
Corresponding timestamps, must be localized to the timezone for the
13611361
``longitude``.
13621362
1363-
An error (``AmbiguousTimeError`` in older pandas, ``ValueError`` in newer)
1363+
``AmbiguousTimeError`` in older pandas, ``ValueError`` in newer
13641364
will be raised if any of the given times are on a day when the local
13651365
daylight savings transition happens at midnight. If you're working
13661366
with such a timezone, consider converting to a non-DST timezone

tests/test_location.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
import numpy as np
66
from numpy import nan
77
import pandas as pd
8-
from .conftest import assert_frame_equal, assert_index_equal, fail_on_pvlib_version
8+
from .conftest import (assert_frame_equal, assert_index_equal,
9+
fail_on_pvlib_version)
910
from pvlib._deprecation import pvlibDeprecationWarning
1011

1112
import pytest
@@ -21,6 +22,7 @@
2122
def test_location_required():
2223
Location(32.2, -111)
2324

25+
2426
@pytest.fixture()
2527
def some_location() -> Location:
2628
return Location(32.2, -111, 'US/Arizona', 700, 'Tucson')
@@ -396,4 +398,4 @@ def test_location_lookup_altitude(mocker):
396398
@fail_on_pvlib_version('0.17.0')
397399
def test_location_pytz_warning(some_location):
398400
with pytest.warns(pvlibDeprecationWarning):
399-
assert str(some_location.pytz) == 'US/Arizona'
401+
assert str(some_location.pytz) == 'US/Arizona'

0 commit comments

Comments
 (0)