-
Notifications
You must be signed in to change notification settings - Fork 1.1k
test_irradiance.test_perez_components fails #390
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
Comments
I don't know why the test is producing different results. But I think the fix is to remove the shortcut that was taken in test_irradiance. At the head of the file are calls to solar_position.get_solarposition and .get_clearsky that provide ephemeris and irradiance values for the unit tests; it is possible that a change to one of these functions is causing the test failure. In my view, its not the best design for a unit test to implicitly rely on other functions. What would be better is to explicitly code the solar position and irradiance values in the test file. Over time these values may diverge from the functions we use to create them, but we'll have unit tests that are isolated to one function. Other opinions? |
I agree with Cliff regarding the bad test design, though I'm less sure that it's really the cause of this particular test failure. It could be that the failure is related to a difference between your environment and the test environments. Can you run |
INSTALLED VERSIONScommit: None pandas: 0.20.3 |
It may be due to bottleneck's |
I've removed the 'bottleneck' lib and now test passes. |
Seems to me that we've found and solved the problem, so I suggest closing the issue if you're satisfied. There are a number of other tests that should be redesigned in the same way, so maybe we should make a separate issue for cataloging them. |
I agree - it merits a separate issue. |
Here is the error message I keep receiving
The text was updated successfully, but these errors were encountered: