From 3de7daf7ece68de0145023db86e797df3148ed18 Mon Sep 17 00:00:00 2001 From: lbonaldo Date: Fri, 2 Feb 2024 16:50:30 -0500 Subject: [PATCH] Fix scaling of tx losses in tlosses.csv #616 --- src/write_outputs/transmission/write_transmission_losses.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/write_outputs/transmission/write_transmission_losses.jl b/src/write_outputs/transmission/write_transmission_losses.jl index 0bf70d298c..127d90fbc5 100644 --- a/src/write_outputs/transmission/write_transmission_losses.jl +++ b/src/write_outputs/transmission/write_transmission_losses.jl @@ -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))