Skip to content

Commit 5ecdbf2

Browse files
committed
Add whatsnew
1 parent e79a4c9 commit 5ecdbf2

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ Breaking Changes
1515
:py:func:`~pvlib.iotools.get_pvgis_tmy` now return ``(data,meta)``
1616
following the iotools convention instead of ``(data,months_selected,inputs,meta)``.
1717
(:pull:`2470`)
18+
* :py:func:`~pvlib.iotools.get_pvgis_tmy` now defaults to ``coerce_year=1990``,
19+
whereas the default behavior previously was to use the years of the selected
20+
months for the TMY index. (:pull:`2474`)
1821
* Remove ``outputformat='basic'`` option in :py:func:`~pvlib.iotools.get_pvgis_tmy`.
1922
(:pull:`2416`)
2023

tests/iotools/test_pvgis.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -493,10 +493,10 @@ def test_get_pvgis_tmy_coerce_year():
493493
@pytest.mark.flaky(reruns=RERUNS, reruns_delay=RERUNS_DELAY)
494494
def test_get_pvgis_tmy_csv(expected, month_year_expected, inputs_expected,
495495
meta_expected, csv_meta, coerce_year=None):
496-
pvgis_data = get_pvgis_tmy(45, 8, outputformat='csv', map_variables=False)
496+
pvgis_data = get_pvgis_tmy(45, 8, outputformat='csv', map_variables=False,
497+
coerce_year=None)
497498
_compare_pvgis_tmy_csv(expected, month_year_expected, inputs_expected,
498-
meta_expected, csv_meta, pvgis_data,
499-
coerce_year=None)
499+
meta_expected, csv_meta, pvgis_data)
500500

501501

502502
def _compare_pvgis_tmy_csv(expected, month_year_expected, inputs_expected,

0 commit comments

Comments
 (0)