-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Issue #2245 Infinite sheds beam fraction on ground zenith guardrail syntax bug #2359
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
Changes from 3 commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
62045a5
Issue #2245
jason-rpkt 23dd57e
Issue #2245 - Linting/ PEP8
jason-rpkt 59d6581
Revert "Issue #2245 utils.py"
jason-rpkt fb84dfc
Merge branch 'pvlib:main' into main
jason-rpkt dae7326
Update from solar_zenith to ghi
jason-rpkt dbb8afc
series input for ghi in test_infinite_sheds.py
jason-rpkt 7bd91b3
Merge branch 'main' into main
cwhanse eb88655
Update docs/sphinx/source/whatsnew/v0.11.3.rst
cwhanse File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
@@ -260,7 +260,10 @@ def get_irradiance_poa(surface_tilt, surface_azimuth, solar_zenith, | |||||||||||||||||
Returns | ||||||||||||||||||
------- | ||||||||||||||||||
output : dict or DataFrame | ||||||||||||||||||
Output is a DataFrame when input ghi is a Series. See Notes for | ||||||||||||||||||
Output is a DataFrame when solar_zenith is a Series. | ||||||||||||||||||
solar_zenith is the one that sets the output type. | ||||||||||||||||||
See Issue #2245 | ||||||||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||||||||||||
See Notes for | ||||||||||||||||||
descriptions of content. | ||||||||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||||||||||||
|
||||||||||||||||||
Notes | ||||||||||||||||||
|
@@ -372,7 +375,7 @@ def get_irradiance_poa(surface_tilt, surface_azimuth, solar_zenith, | |||||||||||||||||
'poa_global': poa_global, 'poa_direct': poa_direct, | ||||||||||||||||||
'poa_diffuse': poa_diffuse, 'poa_ground_diffuse': poa_gnd_pv, | ||||||||||||||||||
'poa_sky_diffuse': poa_sky_pv, 'shaded_fraction': f_x} | ||||||||||||||||||
if isinstance(poa_global, pd.Series): | ||||||||||||||||||
if isinstance(solar_zenith, pd.Series): | ||||||||||||||||||
output = pd.DataFrame(output) | ||||||||||||||||||
return output | ||||||||||||||||||
|
||||||||||||||||||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change | ||||||||
---|---|---|---|---|---|---|---|---|---|---|
|
@@ -87,7 +87,8 @@ def _unshaded_ground_fraction(surface_tilt, surface_azimuth, solar_zenith, | |||||||||
surface_azimuth) | ||||||||||
f_gnd_beam = 1.0 - np.minimum( | ||||||||||
1.0, gcr * np.abs(cosd(surface_tilt) + sind(surface_tilt) * tan_phi)) | ||||||||||
np.where(solar_zenith > max_zenith, 0., f_gnd_beam) # [1], Eq. 4 | ||||||||||
f_gnd_beam = np.where(solar_zenith > max_zenith, 0., f_gnd_beam) | ||||||||||
# [1], Eq. 4 | ||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||||
return f_gnd_beam # 1 - min(1, abs()) < 1 always | ||||||||||
|
||||||||||
|
||||||||||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Now that I read this, I think I should have suggested following the type of
ghi
instead ofsolar_zenith
. Sorry for the confusion @jason-rpkt .