Skip to content

Commit 1b92d40

Browse files
Update pvlib/iotools/pvgis.py with suggestions
use "optional" vs. "default None" per pvlib#1574 Co-authored-by: Kevin Anderson <[email protected]>
1 parent 4fd05fb commit 1b92d40

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pvlib/iotools/pvgis.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -443,13 +443,13 @@ def get_pvgis_tmy(latitude, longitude, outputformat='json', usehorizon=True,
443443
base url of PVGIS API, append ``tmy`` to get TMY endpoint
444444
timeout : int, default 30
445445
time in seconds to wait for server response before timeout
446-
roll_utc_offset: int, default None
446+
roll_utc_offset: int, optional
447447
Use to specify a time zone other than the default UTC zero and roll
448448
dataframe by ``roll_utc_offset`` so it starts at midnight on January
449449
1st. Ignored if ``None``, otherwise will force year to ``coerce_year``.
450-
coerce_year: int, default None
450+
coerce_year: int, optional
451451
Use to force indices to desired year. Will default to 1990 if
452-
``coerce_year`` is ``None``, but ``roll_utc_offset`` is not ``None``.
452+
``coerce_year`` is not specified, but ``roll_utc_offset`` is specified.
453453
454454
Returns
455455
-------

0 commit comments

Comments
 (0)