Skip to content

Commit

Permalink
convert tabs to spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
cfe316 committed Dec 8, 2023
1 parent ec29610 commit 8597ea8
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ function write_minimum_capacity_requirement(path::AbstractString, inputs::Dict,
dfMinCapPrice.Price *= scale_factor # Convert Million $/GW to $/MW

Check warning on line 8 in src/write_outputs/min_max_capacity_requirement/write_minimum_capacity_requirement.jl

View check run for this annotation

Codecov / codecov/patch

src/write_outputs/min_max_capacity_requirement/write_minimum_capacity_requirement.jl#L8

Added line #L8 was not covered by tests

if haskey(inputs, "MinCapPriceCap")
dfMinCapPrice[!,:Slack] = convert(Array{Float64}, value.(EP[:vMinCap_slack]))
dfMinCapPrice[!,:Penalty] = convert(Array{Float64}, value.(EP[:eCMinCap_slack]))
dfMinCapPrice[!,:Slack] = convert(Array{Float64}, value.(EP[:vMinCap_slack]))
dfMinCapPrice[!,:Penalty] = convert(Array{Float64}, value.(EP[:eCMinCap_slack]))
dfMinCapPrice.Slack *= scale_factor # Convert GW to MW
dfMinCapPrice.Penalty *= scale_factor^2 # Convert Million $ to $

Check warning on line 14 in src/write_outputs/min_max_capacity_requirement/write_minimum_capacity_requirement.jl

View check run for this annotation

Codecov / codecov/patch

src/write_outputs/min_max_capacity_requirement/write_minimum_capacity_requirement.jl#L11-L14

Added lines #L11 - L14 were not covered by tests
end
end
CSV.write(joinpath(path, "MinCapReq_prices_and_penalties.csv"), dfMinCapPrice)
end

0 comments on commit 8597ea8

Please sign in to comment.