Skip to content

Commit

Permalink
Remove warnings in docs (#2128)
Browse files Browse the repository at this point in the history
* Update plot_irradiance_nonuniformity_loss.py

* Remove warning from duplicate label

/home/docs/checkouts/readthedocs.org/user_builds/pvlib-python/checkouts/2128/pvlib/temperature.py:docstring of pvlib.temperature.pvsyst_cell:35: WARNING: duplicate label of equation pvsyst, other instance in gallery/floating-pv/plot_floating_pv_cell_temperature

* Move imports section on `plot_irradiance_nonuniformity_loss.py`

Co-Authored-By: RDaxini <143435106+RDaxini@users.noreply.github.com>

* Update docs version switcher text

Co-Authored-By: RDaxini <143435106+RDaxini@users.noreply.github.com>

---------

Co-authored-by: RDaxini <143435106+RDaxini@users.noreply.github.com>
  • Loading branch information
echedey-ls and RDaxini authored Jul 22, 2024
1 parent 2e9c2c0 commit 899b10c
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 12 deletions.
19 changes: 10 additions & 9 deletions docs/examples/bifacial/plot_irradiance_nonuniformity_loss.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,30 +40,31 @@
#
# .. sectionauthor:: Echedey Luis <echelual (at) gmail.com>

import numpy as np
import matplotlib.pyplot as plt
from matplotlib.cm import ScalarMappable
from matplotlib.colors import Normalize

from pvlib.bifacial import power_mismatch_deline

# %%
# Problem description
# -------------------
# Let's set a fixed irradiance to each cell row of the PV array with the values
# described in Figure 1 (A), [1]_. We will cover this case for educational
# purposes, although it can be achieved with the packages
# :ref:`solarfactors <https://github.com/pvlib/solarfactors/>` and
# :ref:`bifacial_radiance <https://github.com/NREL/bifacial_radiance>`.
# `solarfactors <https://github.com/pvlib/solarfactors/>`_ and
# `bifacial_radiance <https://github.com/NREL/bifacial_radiance>`_.
#
# Here we set and plot the global irradiance level of each cell.

import numpy as np
import matplotlib.pyplot as plt
from matplotlib.cm import ScalarMappable
from matplotlib.colors import Normalize

from pvlib.bifacial import power_mismatch_deline

x = np.arange(12, 0, -1)
y = np.arange(6, 0, -1)
cells_irrad = np.repeat([1059, 976, 967, 986, 1034, 1128], len(x)).reshape(
len(y), len(x)
)

# plot the irradiance levels of each cell
color_map = "gray"
color_norm = Normalize(930, 1150)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
The PVSyst model for cell temperature :math:`T_{C}` is given by:
.. math::
:label: pvsyst
T_{C} = T_{a} + \frac{\alpha \cdot E \cdot (1 - \eta_{m})}{U_{c} + U_{v} \cdot WS},
Expand Down
2 changes: 1 addition & 1 deletion docs/sphinx/source/_static/version-alert.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ function warnOnLatestVersion() {
"<p class='last'> " +
"This document is for an <strong>unreleased development version</strong>. " +
"Documentation is available for the <a href='/en/stable/'>current stable release</a>, " +
"or for older versions through the &ldquo;v:&rdquo; menu at bottom right." +
"or for older versions through the &ldquo;v:&rdquo; menu at bottom left." +
"</p>";
warning.querySelector('a').href = window.location.pathname.replace('/latest', '/stable');

Expand Down
2 changes: 1 addition & 1 deletion docs/sphinx/source/user_guide/faq.rst
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ If you see a function in the pvlib documentation that doesn't seem to exist
in your pvlib installation, the documentation is likely for a different version
of pvlib. You can check your installed pvlib version by running
``print(pvlib.__version__)`` in python. To switch documentation versions, use
the `v:` version switcher widget in the bottom right corner of this page.
the `v:` version switcher widget in the bottom left corner of this page.

You can also upgrade your installed pvlib to the latest compatible version
with ``pip install -U pvlib``, but be sure to check the :ref:`whatsnew`
Expand Down

0 comments on commit 899b10c

Please sign in to comment.