Skip to content

Commit

Permalink
Fix scaling of tx losses in tlosses.csv #616
Browse files Browse the repository at this point in the history
  • Loading branch information
lbonaldo committed Feb 2, 2024
1 parent 0cb5f17 commit 7bd31e8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ function write_transmission_losses(path::AbstractString, inputs::Dict, setup::Di
tlosses = zeros(L, T)
tlosses[LOSS_LINES, :] = value.(EP[:vTLOSS][LOSS_LINES, :])
if setup["ParameterScale"] == 1
tlosses[LOSS_LINES, :] *= ModelScalingFactor^2
tlosses[LOSS_LINES, :] *= ModelScalingFactor
end
dfTLosses.AnnualSum = tlosses * inputs["omega"]
dfTLosses = hcat(dfTLosses, DataFrame(tlosses, :auto))
Expand Down

0 comments on commit 7bd31e8

Please sign in to comment.