We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d44fbb3 commit 0b69cbaCopy full SHA for 0b69cba
1 file changed
src/muse/mca.py
@@ -499,7 +499,9 @@ def check_demand_fulfillment(market: Dataset, tol: float) -> bool:
499
from logging import getLogger
500
501
future = market.year[-1].item()
502
- delta = (market.supply - market.consumption).sel(year=future)
+ delta = (market.supply.sum("timeslice") - market.consumption.sum("timeslice")).sel(
503
+ year=future
504
+ )
505
unmet = (delta < tol).any([u for u in delta.dims if u != "commodity"])
506
507
if unmet.any():
0 commit comments