energy_analysis_toolbox.tests.test_power_overconsumption_find module#
- energy_analysis_toolbox.tests.test_power_overconsumption_find.example_power()[source]#
Return an example power series, threshold and overshoot overconsumption.
The power is sampled with 30min period such that any error on the bounds by +/- 1 step is pretty obvious in terms of energy. The power is piecewise-constant, equal to 1W everywhere except :
during 1h from 10:00 to 11:00 when it is 11W
during 1h30min from 14:00 to 15:30 when it is 21W.
- energy_analysis_toolbox.tests.test_power_overconsumption_find.test_from_power_threshold_constant()[source]#
Check the function with constant threshold as float and series
- energy_analysis_toolbox.tests.test_power_overconsumption_find.test_from_power_threshold_custom_ref()[source]#
Check that the custom energy reference is correctly accounted for
- energy_analysis_toolbox.tests.test_power_overconsumption_find.test_from_power_threshold_over_power()[source]#
Check the function with threshold over max power
- energy_analysis_toolbox.tests.test_power_overconsumption_find.test_from_power_threshold_series()[source]#
Check that the function works correctly with a variable threshold
- energy_analysis_toolbox.tests.test_power_overconsumption_find.test_from_power_threshold_under_power()[source]#
Check the function with threshold under min power.
Double limit-case :
DST : the day is shorter than 24h
Whole day : the end of the overconsumption is the last instant in the series, as the moment after is not known. (should be the end of the timestep).