Skip to content

Commit

Permalink
Allow ability to scale written timeseries outputs. (#581)
Browse files Browse the repository at this point in the history
  • Loading branch information
cfe316 authored Nov 20, 2023
1 parent 2ef54dc commit 861c714
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/write_outputs/write_maintenance.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 861c714

Please sign in to comment.