quintel / etengine

Calculation engine for the Energy Transition Model
https://energytransitionmodel.com/
MIT License
14 stars 7 forks source link

Blackout hours calculation fails when there is 0 installed electricity production capacity #1437

Open mabijkerk opened 1 month ago

mabijkerk commented 1 month ago

In this scenario I removed all the electricity production capacity from a blank Schiermonnikoog scenario, except for 0.1 MW of solar PV.

If I then remove the last 0.1 MW capacity, this is not processed by the model. The slider says it is set at 0.0 MW, but in the engine the production of solar PV stays the same. On pro I get an engine error, 422 (Unprocessable Content). Locally I get a more informative error message:

Screenshot 2024-06-05 at 12 24 44

@noracato is this something you can look into at some point? It is very much an edge case, so no high priority.