File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -232,9 +232,8 @@ def adhoc_match_demand(
232232 demand = next (c for c in constraints if c .name == "demand" ).b
233233
234234 max_capacity = next (c for c in constraints if c .name == "max capacity expansion" ).b
235- techs = broadcast_over_assets (technologies , max_capacity )
236235 max_prod = maximum_production (
237- techs ,
236+ broadcast_over_assets ( technologies , max_capacity ) ,
238237 max_capacity ,
239238 technology = costs .replacement ,
240239 commodity = demand .commodity ,
@@ -256,7 +255,7 @@ def adhoc_match_demand(
256255
257256 capacity = capacity_in_use (
258257 production ,
259- technologies ,
258+ broadcast_over_assets ( technologies , production ) ,
260259 technology = production .replacement ,
261260 timeslice_level = timeslice_level ,
262261 ).drop_vars ("technology" )
Original file line number Diff line number Diff line change @@ -275,17 +275,14 @@ def capacity_in_use(
275275 Capacity-in-use for each technology, whittled down by the filters.
276276 """
277277 from muse .commodities import is_enduse
278- from muse .utilities import broadcast_over_assets , filter_input
278+ from muse .utilities import filter_input
279279
280280 prod = filter_input (
281281 production , ** {k : v for k , v in filters .items () if k in production .dims }
282282 )
283283
284- techs = technologies [["fixed_outputs" , "utilization_factor" ]]
285- assert isinstance (techs , xr .Dataset )
286- btechs = broadcast_over_assets (techs , prod , installed_as_year = True )
287284 ftechs = filter_input (
288- btechs , ** {k : v for k , v in filters .items () if k in technologies .dims }
285+ technologies , ** {k : v for k , v in filters .items () if k in technologies .dims }
289286 )
290287
291288 factor = 1 / (ftechs .fixed_outputs * ftechs .utilization_factor )
You can’t perform that action at this time.
0 commit comments