Closed maurerle closed 4 months ago
Attention: Patch coverage is 81.81818%
with 2 lines
in your changes are missing coverage. Please review.
Project coverage is 77.33%. Comparing base (
b8345fe
) to head (f8431e9
).
Files | Patch % | Lines |
---|---|---|
assume/common/outputs.py | 0.00% | 1 Missing :warning: |
assume/common/units_operator.py | 90.00% | 1 Missing :warning: |
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
This fixes the issue that the dispatch is written twice in the units_operator, which @kim-mskw mentioned in one of the CSVs.
I am not sure, if this fix is correct as we changed the behavior from "write only the dispatch until before now" to "write the dispatch including now" in b1ae73e9ce9d4079df93fa3c901127f7ef59353f I think this was due to that the current_dispatch should be executed (e.g. confirmed) also for the current hour, and we had a problem if it is not there yet.
Though we might have fixed the need for including the current hour too with 0f43e135f1e08cddabae25cdf2cfdac9a4aff71c in #290 ..?
UPDATE: I found that the problem was not writing the current hour twice, but the last one - this is fixed in the last commit.
I wrote a test to make sure that this behavior is confirmed to work, though we probably need more test cases in general.
I am quite sure that this is the fix we need here.