10000 Adopt `dni_clear` variable name for clearsky DNI by RDaxini · Pull Request #2274 · pvlib/pvlib-python · GitHub
[go: up one dir, main page]

Skip to content

Adopt dni_clear variable name for clearsky DNI #2274

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 19 commits into from
Dec 10, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
Prev Previous commit
Next Next commit
0.12->0.13 irradiance.py, test_irradiance.py
  • Loading branch information
RDaxini committed Dec 4, 2024
commit a1dbbb32602d56ad88248bf63b0c484141ed88c1
4 changes: 2 additions & 2 deletions pvlib/irradiance.py
Original file line number Diff line number Diff line change
Expand Up @@ -2155,7 +2155,7 @@ def _dirint_bins(times, kt_prime, zenith, w, delta_kt_prime):
since='0.11.2',
old_param_name='dni_clearsky',
new_param_name='dni_clear',
removal="0.12.0")
removal="0.13.0")
def dirindex(ghi, ghi_clearsky, dni_clear, zenith, times, pressure=101325.,
use_delta_kt_prime=True, temp_dew=None, min_cos_zenith=0.065,
max_zenith=87):
Expand Down Expand Up @@ -3620,7 +3620,7 @@ def _get_dirint_coeffs():
since='0.11.2',
old_param_name='clearsky_dni',
new_param_name='dni_clear',
removal="0.12.0")
removal="0.13.0")
def dni(ghi, dhi, zenith, dni_clear=None, clearsky_tolerance=1.1,
zenith_threshold_for_zero_dni=88.0,
zenith_threshold_for_clearsky_limit=80.0):
Expand Down
4 changes: 2 additions & 2 deletions pvlib/tests/test_irradiance.py
Original file line number Diff line number Diff line change
Expand Up @@ -1126,7 +1126,7 @@ def test_dirindex_min_cos_zenith_max_zenith():
assert_series_equal(out, expected)


@fail_on_pvlib_version("0.12")
@fail_on_pvlib_version("0.13")
def test_dirindex_dni_clearsky_deprecation():
times = pd.DatetimeIndex(['2014-06-24T12-0700', '2014-06-24T18-0700'])
ghi = pd.Series([0, 1], index=times)
Expand Down Expand Up @@ -1157,7 +1157,7 @@ def test_dni():
146.190220008, 573.685662283]))


@fail_on_pvlib_version("0.12")
@fail_on_pvlib_version("0.13")
def test_dni_dni_clearsky_deprecation():
ghi = pd.Series([90, 100, 100, 100, 100])
dhi = pd.Series([100, 90, 50, 50, 50])
Expand Down
Loading
0