Skip to content

Commit

Permalink
eliminate unneeded function
Browse files Browse the repository at this point in the history
  • Loading branch information
cfe316 committed Dec 1, 2023
1 parent f8fa6da commit 66b8f10
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,10 @@ function thermal_plant_effective_capacity(
)::Vector{Float64}
y = r_id
dfGen = inputs["dfGen"]
capresfactor(y, capres) = dfGen[y, Symbol("CapRes_$capres")]
capresfactor = dfGen[y, Symbol("CapRes_$capres_zone")]
eTotalCap = value.(EP[:eTotalCap][y])

Check warning on line 44 in src/write_outputs/capacity_reserve_margin/effective_capacity.jl

View check run for this annotation

Codecov / codecov/patch

src/write_outputs/capacity_reserve_margin/effective_capacity.jl#L41-L44

Added lines #L41 - L44 were not covered by tests

effective_capacity = fill(capresfactor(y, capres_zone) * eTotalCap, length(timesteps))
effective_capacity = fill(capresfactor * eTotalCap, length(timesteps))

Check warning on line 46 in src/write_outputs/capacity_reserve_margin/effective_capacity.jl

View check run for this annotation

Codecov / codecov/patch

src/write_outputs/capacity_reserve_margin/effective_capacity.jl#L46

Added line #L46 was not covered by tests

if has_maintenance(inputs) && y in resources_with_maintenance(dfGen)
adjustment = thermal_maintenance_capacity_reserve_margin_adjustment(EP, inputs, y, capres_zone, timesteps)
Expand Down

0 comments on commit 66b8f10

Please sign in to comment.