Skip to content
Open
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
Updated to reccomendations from ci-stickler - again
  • Loading branch information
trondkr committed Mar 25, 2021
commit 80bfe29a9273477f8f310920c988df2be207ec6a
4 changes: 2 additions & 2 deletions pvlib/irradiance.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,8 @@ def cloud_opacity_factor(irr_dif_clouds: np.ndarray,
f_dir = (f_dir_s / irr_dir_s) * irr_dir_clouds

# Diffuse light scaling factor. Equation 7 Ernst et al. 2016
s_diff = (1 - n_rho) * (f_diff_s / irr_diff_s) + \
n_rho * ((f_dir_s + f_diff_s) / irr_glob_s)
s_diff = (1 - n_rho) * (f_diff_s / irr_diff_s) + n_rho \
* ((f_dir_s + f_diff_s) / irr_glob_s)

# Equation 8 Ernst et al. 2016
f_diff = s_diff * irr_dif_clouds
Expand Down