From 861c714cd10a0f927bcc53dba123ba1a76642e58 Mon Sep 17 00:00:00 2001 From: Jacob Schwartz Date: Mon, 20 Nov 2023 11:36:37 -0500 Subject: [PATCH] Allow ability to scale written timeseries outputs. (#581) --- src/write_outputs/write_maintenance.jl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/write_outputs/write_maintenance.jl b/src/write_outputs/write_maintenance.jl index 741abdcfa8..d00af7b696 100644 --- a/src/write_outputs/write_maintenance.jl +++ b/src/write_outputs/write_maintenance.jl @@ -7,9 +7,9 @@ function write_simple_csv(filename::AbstractString, header::Vector, matrix) write_simple_csv(filename, df) end -function prepare_timeseries_variables(EP::Model, set::Set{Symbol}) +function prepare_timeseries_variables(EP::Model, set::Set{Symbol}, scale::Float64=1.0) # function to extract data from DenseAxisArray - data(var) = value.(EP[var]).data + data(var) = scale * value.(EP[var]).data return DataFrame(set .=> data.(set)) end