Skip to content

Commit 43afab7

Browse files
committed
Change get_pvgis_tmy coerce_year default to 1990
1 parent e4d3aa4 commit 43afab7

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

pvlib/iotools/pvgis.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -434,7 +434,7 @@ def _coerce_and_roll_tmy(tmy_data, tz, year):
434434
def get_pvgis_tmy(latitude, longitude, outputformat='json', usehorizon=True,
435435
userhorizon=None, startyear=None, endyear=None,
436436
map_variables=True, url=URL, timeout=30,
437-
roll_utc_offset=None, coerce_year=None):
437+
roll_utc_offset=None, coerce_year=1990):
438438
"""
439439
Get TMY data from PVGIS.
440440
@@ -478,8 +478,10 @@ def get_pvgis_tmy(latitude, longitude, outputformat='json', usehorizon=True,
478478
dataframe by ``roll_utc_offset`` so it starts at midnight on January
479479
1st. Ignored if ``None``, otherwise will force year to ``coerce_year``.
480480
coerce_year: int, optional
481-
Use to force indices to desired year. Will default to 1990 if
482-
``coerce_year`` is not specified, but ``roll_utc_offset`` is specified.
481+
Use to force indices to desired year. Defaults to 1990. Specify ``None``
482+
to return the actual indicies used for the TMY. If ``coerce_year`` is
483+
``None``, but ``roll_utc_offset`` is specified, then ``coerce`` year
484+
will be set to the default.
483485
484486
Returns
485487
-------

0 commit comments

Comments
 (0)