Skip to content

Commit d91476d

Browse files
authored
Merge pull request #401 from EnergySystemsModellingLab/fix_error_message
Fix error message in `scipy_match_demand`
2 parents 06d35af + ebb816a commit d91476d

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

src/muse/investments.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -310,8 +310,6 @@ def scipy_match_demand(
310310

311311
from muse.constraints import ScipyAdapter
312312

313-
df_technologies = technologies.to_dataframe()
314-
315313
if "timeslice" in costs.dims and timeslice_op is not None:
316314
costs = timeslice_op(costs)
317315
if "year" in technologies.dims and year is None:
@@ -342,7 +340,7 @@ def scipy_match_demand(
342340
msg = (
343341
res.message
344342
+ "\n"
345-
+ f"Error in sector containing {df_technologies.technology.unique()}"
343+
+ f"Error in sector containing {technologies.technology.values}"
346344
)
347345
getLogger(__name__).critical(msg)
348346
raise GrowthOfCapacityTooConstrained

0 commit comments

Comments
 (0)