Closed ahilbers closed 1 year ago
I've found a quick workaround -- perhaps a bit of a hack, but it works well -- see PR.
Fixed in #386 and will be available in v0.6.9. Thanks for the catch and initial fix PR @ahilbers!
Sounds good. Thanks for sorting this!
Problem description
When running a model with storage in operate mode, intial storage levels in a new horizon sometimes become negative. I presume this is because of floating point errors around 0. A typical traceback looks like this:
Steps to reproduce the problem
Run a Calliope model in operate mode, and ensure storage levels at the beginning of some horizons are zero. Then this happens with a certain probability.
Calliope version
0.7.0-dev
(I'm not completely sure how I've ended up with this version).