We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent baf447c commit 6fd95c7Copy full SHA for 6fd95c7
src/muse/sectors/subsector.py
@@ -87,6 +87,14 @@ def aggregate_lp(
87
timeslice_level=self.timeslice_level,
88
)
89
90
+ # Further filer demands to only include commodities with positive unmet demand
91
+ # Some commodities may be lost here if capacity is already sufficient to meet
92
+ # demand
93
+ demands = demands.where(
94
+ demands.sum([dim for dim in demands.dims if dim != "commodity"]) > 0,
95
+ drop=True,
96
+ )
97
+
98
if "dst_region" in demands.dims:
99
msg = """
100
dst_region found in demand dimensions. This is unexpected. Demands
0 commit comments