Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions docs/sphinx/source/whatsnew/v0.15.2.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
~~~~~~~~~~~~
Expand Down
7 changes: 2 additions & 5 deletions pvlib/iotools/meteonorm.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Comment on lines +405 to +406

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
clear_sky_radiation_model="esra", future_scenario=None,
future_year=None, interval_index=False,
clear_sky_radiation_model="esra", data_version=None,
future_scenario=None, future_year=None, interval_index=False,

map_variables=True, url=URL):
"""
Retrieve TMY irradiance and weather data from Meteonorm.
Expand Down Expand Up @@ -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

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
future_scenario : str, optional
data_version : str, optional
Deprecated parameter. Has no effect.
future_scenario : str, optional

Future climate scenario.
future_year : int, optional
Expand Down Expand Up @@ -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,
Expand Down
1 change: 0 additions & 1 deletion tests/iotools/test_meteonorm.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
Loading