diff --git a/docs/sphinx/source/whatsnew/v0.15.2.rst b/docs/sphinx/source/whatsnew/v0.15.2.rst index ef85250377..5ba476bc49 100644 --- a/docs/sphinx/source/whatsnew/v0.15.2.rst +++ b/docs/sphinx/source/whatsnew/v0.15.2.rst @@ -37,6 +37,9 @@ Bug fixes :py:mod:`csv` module instead of a naive ``str.split(',')``, so quoted column names containing commas (e.g. the material names in spectral-on-demand files) are no longer split into spurious columns. (:issue:`2736`, :pull:`2771`) +* Remove ``data_version`` parameter from + :py:func:`~pvlib.iotools.get_meteonorm_tmy` as this parameter is no longer + supported and results in an error. (:pull:`2781`) Enhancements ~~~~~~~~~~~~ diff --git a/pvlib/iotools/meteonorm.py b/pvlib/iotools/meteonorm.py index 88af396e42..6c541efee8 100644 --- a/pvlib/iotools/meteonorm.py +++ b/pvlib/iotools/meteonorm.py @@ -402,8 +402,8 @@ def get_meteonorm_tmy( surface_tilt=0, surface_azimuth=180, time_step="1h", horizon="auto", terrain_situation="open", albedo=None, turbidity="auto", random_seed=None, - clear_sky_radiation_model="esra", data_version="latest", - future_scenario=None, future_year=None, interval_index=False, + clear_sky_radiation_model="esra", future_scenario=None, + future_year=None, interval_index=False, map_variables=True, url=URL): """ Retrieve TMY irradiance and weather data from Meteonorm. @@ -448,8 +448,6 @@ def get_meteonorm_tmy( with the same random seed will yield identical results. clear_sky_radiation_model : str, default : 'esra' Which clearsky model to use. Must be either `'esra'` or `'solis'`. - data_version : str, default : 'latest' - Version of Meteonorm climatological data to be used. future_scenario : str, optional Future climate scenario. future_year : int, optional @@ -498,7 +496,6 @@ def get_meteonorm_tmy( "situation": terrain_situation, "turbidity": turbidity, "clear_sky_radiation_model": clear_sky_radiation_model, - "data_version": data_version, "random_seed": random_seed, "future_scenario": future_scenario, "future_year": future_year, diff --git a/tests/iotools/test_meteonorm.py b/tests/iotools/test_meteonorm.py index ab4b53293d..e9154f1722 100644 --- a/tests/iotools/test_meteonorm.py +++ b/tests/iotools/test_meteonorm.py @@ -302,7 +302,6 @@ def test_get_meteonorm_tmy( turbidity=[5.2, 4, 3, 3.1, 3.0, 2.8, 3.14, 3.0, 3, 3, 4, 5], random_seed=100, clear_sky_radiation_model='solis', - data_version='v9.0', # fix version future_scenario='ssp1_26', future_year=2030, interval_index=True,