Skip to content

Commit f0b4c74

Browse files
committed
docs: comments update
1 parent dac983e commit f0b4c74

3 files changed

Lines changed: 7 additions & 7 deletions

File tree

docs/sphinx/source/whatsnew/v0.15.2.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Breaking Changes
1010

1111
Deprecations
1212
~~~~~~~~~~~~
13-
* ``Location.pytz`` is deprecated. Use ``Location.tz`` instead.
13+
* :py:attr:`pvlib.location.Location.pytz` is deprecated and will be removed in a future release. Use :py:attr:`~pvlib.location.Location.tz` instead.
1414
(:issue:`2343`, :pull:`2757`)
1515

1616

pvlib/location.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,11 @@ class Location:
4343
4444
tz : time zone as str, int, float, or datetime.tzinfo, default 'UTC'.
4545
See http://en.wikipedia.org/wiki/List_of_tz_database_time_zones for a
46-
list of valid name strings. An `int` or `float` must be a whole-number
47-
hour offsets from UTC that can be converted to the IANA-supported
48-
'Etc/GMT-N' format. (Note the limited range of the offset N and its
49-
sign-change convention.) Time zones from the zoneinfo packages may also
50-
be passed here.
46+
list of valid name strings. An ``int`` or ``float`` must be a
47+
whole-number hour offsets from UTC that can be converted to the
48+
IANA-supported 'Etc/GMT-N' format. (Note the limited range of the
49+
offset N and its sign-change convention.) Time zones from the
50+
``zoneinfo`` packages may also be passed.
5151
5252
The `tz` attribute is represented as a valid IANA time zone name
5353
string.

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-
``AmbiguousTimeError`` in older pandas, ``ValueError`` in newer
1363+
``AmbiguousTimeError`` in ``pandas<3``, ``ValueError`` in ``pandas>=3``
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

0 commit comments

Comments
 (0)