Spillover feature for WashingMachine
and Dishwasher
#54
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Closes #57
This introduces logic for handling
consumption
anddischarge
simulations that extend into a different day (past midnight).User can apply this by running:
Key points here are that:
spillover
is an optional feature. By default, the event will just be cropped out if it extends past the end of simulation.spillover
isTrue
and a single day is simulated, the event extending past midnight will spill back into the start of the same day.spillover
is True and multiple days are simulated, if an event extends past midnight that is not the final day in the simulation (e.g. day 2 of 4), it will just carry onto the next day as normal. However, if the event occurs on the final day in the simulation and extends past midnight it will spill back into the start of the simulation on the first day.The value of the
spillover
feature is that if the user requires, it preserves antecedent conditions for the given time period (number of days) simulated.Note that this is currently only applied to the
WashingMachine
andDishwasher
appliances.Two day consumption (past midnight on day 1)
Two day discharge (past midnight on day 1)
Three day consumption (past midnight on final day)
Three day discharge (past midnight on final day)