Skip to content

Commit b224708

Browse files
committed
Further tidy test_constraints fixtures
1 parent fbb105f commit b224708

3 files changed

Lines changed: 115 additions & 179 deletions

File tree

src/muse/constraints.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -987,14 +987,14 @@ class ScipyAdapter:
987987
@classmethod
988988
def factory(
989989
cls,
990-
costs: xr.DataArray,
990+
capacity_costs: xr.DataArray,
991991
constraints: list[Constraint],
992992
commodities: list[str],
993993
timeslice_level: str | None = None,
994994
) -> ScipyAdapter:
995995
# Calculate costs for the linear problem
996996
lpcosts = lp_costs(
997-
capacity_costs=costs,
997+
capacity_costs=capacity_costs,
998998
commodities=commodities,
999999
timeslice_level=timeslice_level,
10001000
)

src/muse/investments.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,7 @@ def scipy_match_demand(
297297

298298
# Run scipy optimization with highs solver
299299
adapter = ScipyAdapter.factory(
300-
costs=costs,
300+
capacity_costs=costs,
301301
constraints=constraints,
302302
commodities=commodities,
303303
timeslice_level=timeslice_level,

0 commit comments

Comments
 (0)