Skip to content

Commit d2df956

Browse files
authored
Merge branch 'main' into sapm-params
2 parents 1f5bcb5 + a440938 commit d2df956

File tree

8 files changed

+27
-9
lines changed

8 files changed

+27
-9
lines changed
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
/* Overrides for sphinx-hoverxref since it does not support a native dark theme, see */
2+
/* https://github.com/readthedocs/sphinx-hoverxref/issues/231 */
3+
/* Inspired by https://github.com/pybamm-team/PyBaMM/pull/3083 */
4+
5+
/* These will ensure that the tooltip inherits the pydata-sphinx-theme colours */
6+
7+
.tooltipster-sidetip.tooltipster-shadow.tooltipster-shadow-custom .tooltipster-content {
8+
background-color: var(--pst-color-background) !important;
9+
color: var(--pst-color-text-base) !important;
10+
}

docs/sphinx/source/conf.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -282,6 +282,8 @@ def setup(app):
282282
app.add_css_file("reference_format.css")
283283
# Add a warning banner at the top of the page if viewing the "latest" docs
284284
app.add_js_file("version-alert.js")
285+
# Match the color theme of tooltips to PyData Sphinx Theme light/dark mode
286+
app.add_css_file("tooltipster_color_theming.css")
285287

286288
# -- Options for LaTeX output ---------------------------------------------
287289

docs/sphinx/source/user_guide/nomenclature.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,9 @@ There is a convention on consistent variable names throughout the library:
7171
ghi
7272
Global horizontal irradiance
7373

74+
ghi_clear
75+
Clearsky global horizontal irradiance [Wm⁻²]
76+
7477
ghi_extra
7578
Horizontal irradiance at top of atmosphere (extraterrestrial)
7679

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ Bug fixes
1212
using the `from pvlib.transformer` syntax (:pull:`2388`)
1313
* :py:class:`~pvlib.modelchain.ModelChain` now requires only a minimal set of
1414
parameters to run the SAPM electrical model. (:issue:`2369`, :pull:`2393`)
15+
* Correct keys for First Solar modules in `~pvlib.spectrum.spectral_factor_pvspec` (:issue:`2398`, :pull:`2400`)
1516

1617

1718
Deprecations
@@ -23,11 +24,13 @@ Enhancements
2324
* :py:func:`~pvlib.irradiance.gti_dirint` now raises an informative message
2425
when input data don't include values with AOI<90 (:issue:`1342`, :pull:`2347`)
2526

27+
2628
Documentation
2729
~~~~~~~~~~~~~
2830
* Fix Procedural and Object Oriented simulation examples having slightly different results, in :ref:`introtutorial`. (:issue:`2366`, :pull:`2367`)
2931
* Restructure the user guide with subsections (:issue:`2302`, :pull:`2310`)
3032
* Add references for :py:func:`pvlib.snow.loss_townsend`. (:issue:`2383`, :pull:`2384`)
33+
* Add :term:`ghi_clear` to the :ref:`nomenclature` page (:issue:`2272`, :pull`2397`)
3134

3235
Testing
3336
~~~~~~~

pvlib/iotools/psm3.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
'ghi_clear': 'clearsky_ghi',
5050
'dhi_clear': 'clearsky_dhi',
5151
'dni_clear': 'clearsky_dni',
52-
'zenith': 'solar_zenith_angle',
52+
'solar_zenith': 'solar_zenith_angle',
5353
'temp_air': 'air_temperature',
5454
'temp_dew': 'dew_point',
5555
'relative_humidity': 'relative_humidity',

pvlib/spectrum/mismatch.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -520,7 +520,7 @@ def spectral_factor_pvspec(airmass_absolute, clearsky_index,
520520
One of the following PV technology strings from [1]_:
521521
522522
* ``'fs4-1'`` - First Solar series 4-1 and earlier CdTe module.
523-
* ``'fs4-2'`` - First Solar 4-2 and later CdTe module.
523+
* ``'fs4-2'`` - First Solar series 4-2 and later CdTe module.
524524
* ``'monosi'`` - anonymous monocrystalline Si module.
525525
* ``'multisi'`` - anonymous multicrystalline Si module.
526526
* ``'cigs'`` - anonymous copper indium gallium selenide module.
@@ -576,8 +576,8 @@ def spectral_factor_pvspec(airmass_absolute, clearsky_index,
576576
_coefficients = {}
577577
_coefficients['multisi'] = (0.9847, -0.05237, 0.03034)
578578
_coefficients['monosi'] = (0.9845, -0.05169, 0.03034)
579-
_coefficients['fs-2'] = (1.002, -0.07108, 0.02465)
580-
_coefficients['fs-4'] = (0.9981, -0.05776, 0.02336)
579+
_coefficients['fs4-2'] = (1.002, -0.07108, 0.02465)
580+
_coefficients['fs4-1'] = (0.9981, -0.05776, 0.02336)
581581
_coefficients['cigs'] = (0.9791, -0.03904, 0.03096)
582582
_coefficients['asi'] = (1.051, -0.1033, 0.009838)
583583

pvlib/tests/spectrum/test_mismatch.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -202,8 +202,8 @@ def test_spectral_factor_caballero_supplied_ambiguous():
202202

203203
@pytest.mark.parametrize("module_type,expected", [
204204
('asi', np.array([1.15534029, 1.1123772, 1.08286684, 1.01915462])),
205-
('fs-2', np.array([1.0694323, 1.04948777, 1.03556288, 0.9881471])),
206-
('fs-4', np.array([1.05234725, 1.037771, 1.0275516, 0.98820533])),
205+
('fs4-2', np.array([1.0694323, 1.04948777, 1.03556288, 0.9881471])),
206+
('fs4-1', np.array([1.05234725, 1.037771, 1.0275516, 0.98820533])),
207207
('multisi', np.array([1.03310403, 1.02391703, 1.01744833, 0.97947605])),
208208
('monosi', np.array([1.03225083, 1.02335353, 1.01708734, 0.97950110])),
209209
('cigs', np.array([1.01475834, 1.01143927, 1.00909094, 0.97852966])),
@@ -218,8 +218,8 @@ def test_spectral_factor_pvspec(module_type, expected):
218218

219219
@pytest.mark.parametrize("module_type,expected", [
220220
('asi', pd.Series([1.15534029, 1.1123772, 1.08286684, 1.01915462])),
221-
('fs-2', pd.Series([1.0694323, 1.04948777, 1.03556288, 0.9881471])),
222-
('fs-4', pd.Series([1.05234725, 1.037771, 1.0275516, 0.98820533])),
221+
('fs4-2', pd.Series([1.0694323, 1.04948777, 1.03556288, 0.9881471])),
222+
('fs4-1', pd.Series([1.05234725, 1.037771, 1.0275516, 0.98820533])),
223223
('multisi', pd.Series([1.03310403, 1.02391703, 1.01744833, 0.97947605])),
224224
('monosi', pd.Series([1.03225083, 1.02335353, 1.01708734, 0.97950110])),
225225
('cigs', pd.Series([1.01475834, 1.01143927, 1.00909094, 0.97852966])),

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ doc = [
6666
'sphinx-toggleprompt == 0.5.2',
6767
'sphinx-favicon',
6868
'solarfactors',
69-
'sphinx-hoverxref',
69+
'sphinx-hoverxref ~= 1.4.2', # when updating, check that _static/tooltipster_color_theming.css still works
7070
]
7171
test = [
7272
'pytest',

0 commit comments

Comments
 (0)