Skip to content

Commit

Permalink
Move imports section on plot_irradiance_nonuniformity_loss.py
Browse files Browse the repository at this point in the history
Co-Authored-By: RDaxini <143435106+RDaxini@users.noreply.github.com>
  • Loading branch information
echedey-ls and RDaxini committed Jul 15, 2024
1 parent 2829d96 commit 8aeb039
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions docs/examples/bifacial/plot_irradiance_nonuniformity_loss.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,6 @@
#
# .. 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
# -------------------
Expand All @@ -58,12 +51,20 @@
#
# 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

0 comments on commit 8aeb039

Please sign in to comment.