Skip to content

Commit

Permalink
feat: export fuel curves for plexos (#77)
Browse files Browse the repository at this point in the history
  • Loading branch information
JensZack authored Nov 11, 2024
1 parent cc76cf2 commit bd651e4
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions src/r2x/exporter/plexos.py
Original file line number Diff line number Diff line change
Expand Up @@ -995,10 +995,12 @@ def _variable_type_parsing(component: dict, cost_dict: dict[str, Any]) -> dict[s
component["Heat Rate"] = function_data["proportional_term"]
case "InputOutputCurve":
raise NotImplementedError("`InputOutputCurve` not yet implemented on Plexos exporter.")
if fuel_cost := fuel_curve.get("fuel_cost"):
component["Fuel Price"] = fuel_cost
if vom_cost := fuel_curve.get("vom_cost"):
component["VO&M Charge"] = vom_cost["function_data"]["proportional_term"]
case "CostCurve":
raise NotImplementedError("`CostCurve` operational cost not yet implemented on Plexos exporter.")
pass

if fuel_cost := fuel_curve.get("fuel_cost"):
component["Fuel Price"] = fuel_cost
if vom_cost := fuel_curve.get("vom_cost"):
component["VO&M Charge"] = vom_cost["function_data"]["proportional_term"]

return component

0 comments on commit bd651e4

Please sign in to comment.