Closed cwhanse closed 3 years ago
Good catch.
I'm not very familiar with testing compute.py
because of the heavy dependencies. I thought this test would fail if those signs are changed but it does not.
Ah, I forgot the monthly temperature correction is different. I think the -
in this line should also be changed to a +
:
The test in the comment above does fail when I apply that change.
> assert ser.loc["weather_adjusted_energy"] == 56249.625
E assert 56250.375 == 56249.625
source data for that test is
This test coarsely checks the correctness of the corrected energy
There are 270 permutations run within that test. Perhaps we need a more precise test for a single permutation.
The use case descriptions I provided assumed that the temperature coefficient
gamma
was a positive number. That assumption conflicts with pvlib-python's conventions. This calculation should change toIs there a numerical test of
compare_predicted_and_actual
that checks correctness of the adjusted energy? Or should I come up with one?