Skip to content

Commit b7b1b89

Browse files
committed
Fix trade tests
1 parent 63479b1 commit b7b1b89

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/muse/examples.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ def matching_market(sector: str, model: str = "default") -> xr.Dataset:
276276
if "dst_region" in market.dims:
277277
market = market.rename(dst_region="region")
278278
if market.region.dims:
279-
consump = consumption(loaded_sector.technologies, production)
279+
consump = consumption(techs, production)
280280
market["consumption"] = drop_timeslice(
281281
consump.groupby("region").sum(
282282
{"asset", "dst_region"}.intersection(consump.dims)
@@ -285,7 +285,7 @@ def matching_market(sector: str, model: str = "default") -> xr.Dataset:
285285
)
286286
else:
287287
market["consumption"] = (
288-
consumption(loaded_sector.technologies, production).sum(
288+
consumption(techs, production).sum(
289289
{"asset", "dst_region"}.intersection(market.dims)
290290
)
291291
+ market.supply

0 commit comments

Comments
 (0)