Skip to content

add explicit tests for aoi and aoi projection functions #345

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 2 commits into from
Jul 7, 2017

Conversation

wholmgren
Copy link
Member

PR #339 discusses changing the angle of incidence modifier for values greater than 90 or less than 0. Reviewing the code made me realize that we're not explicitly testing pvlib's aoi calculation functions. So, this PR adds some simple tests of irradiance.aoi and irradiance.aoi_projection. I think it's a reasonable set of parameters, but let me know if you think I should add another test case.

@wholmgren wholmgren added this to the 0.4.6 milestone Jun 30, 2017
aoi_proj_expected):
aoi = irradiance.aoi(surface_tilt, surface_azimuth, solar_zenith,
solar_azimuth)
assert_allclose(aoi, aoi_expected, atol=1e-6)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Might as well drop all those decimal digits above.

@wholmgren wholmgren merged commit 8d2650a into pvlib:master Jul 7, 2017
@wholmgren wholmgren modified the milestones: 0.4.6, 0.5.0 Aug 8, 2017
@wholmgren wholmgren deleted the aoitests branch September 9, 2017 20:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants