Skip to content

Commit 3a6b909

Browse files
authored
Merge branch 'main' into rh/add_honduras_structs
2 parents 940132e + 16b3ffd commit 3a6b909

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/data_format_conversions.jl

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,12 @@ _convert_op_cost(::Val{:GenericBattery}, ::Val{:StorageManagementCost}, op_cost:
9999
energy_surplus_cost = op_cost["energy_surplus_cost"],
100100
)
101101

102+
_convert_op_cost(::Val{:HydroPumpedStorage}, ::Val{:TwoPartCost}, op_cost::Dict) =
103+
HydroGenerationCost(CostCurve(InputOutputCurve(op_cost["variable"])), op_cost["fixed"])
104+
105+
_convert_op_cost(::Val{:HydroDispatch}, ::Val{:TwoPartCost}, op_cost::Dict) =
106+
HydroGenerationCost(CostCurve(InputOutputCurve(op_cost["variable"])), op_cost["fixed"])
107+
102108
# TODO implement remaining _convert_op_cost methods
103109

104110
function _convert_data!(
@@ -123,6 +129,10 @@ function _convert_data!(
123129
new_op_cost = IS.serialize(_convert_op_cost(comp_type, op_cost_type, op_cost))
124130
component["operation_cost"] = new_op_cost
125131
end
132+
133+
(component["__metadata__"]["type"] == "RenewableFix") &&
134+
(component["__metadata__"]["type"] = "RenewableNonDispatch")
135+
126136
if component["__metadata__"]["type"] ["BatteryEMS", "GenericBattery"]
127137
old_type = component["__metadata__"]["type"]
128138
component["__metadata__"]["type"] = "EnergyReservoirStorage"

0 commit comments

Comments
 (0)