From 0f34e8522f73344ce6fde179c3a6be871089ae08 Mon Sep 17 00:00:00 2001 From: Abel Soares Siqueira Date: Wed, 25 Oct 2023 15:57:38 +0200 Subject: [PATCH] Update input_tables with new columns for RepPeriodData and update tiny --- src/input_tables.jl | 2 ++ test/inputs/Norse/rep-periods-data.csv | 4 ++-- test/inputs/tiny/rep-periods-data.csv | 10 +++++----- 3 files changed, 9 insertions(+), 7 deletions(-) diff --git a/src/input_tables.jl b/src/input_tables.jl index 34303018..2c575bc3 100644 --- a/src/input_tables.jl +++ b/src/input_tables.jl @@ -45,4 +45,6 @@ end struct RepPeriodData id::Int # Representative period ID weight::Float64 # Hours + num_time_steps::Int # Numer of time steps + time_scale::Float64 # Duration of each time steps (hours) end diff --git a/test/inputs/Norse/rep-periods-data.csv b/test/inputs/Norse/rep-periods-data.csv index 8f54b63c..d93ff145 100644 --- a/test/inputs/Norse/rep-periods-data.csv +++ b/test/inputs/Norse/rep-periods-data.csv @@ -1,3 +1,3 @@ -,hours,, +,hours,,hours id,weight,num_time_steps,time_scale -1,52.1423,168,1 +1,52.1423,168,1.0 diff --git a/test/inputs/tiny/rep-periods-data.csv b/test/inputs/tiny/rep-periods-data.csv index 43488a98..b32c2613 100644 --- a/test/inputs/tiny/rep-periods-data.csv +++ b/test/inputs/tiny/rep-periods-data.csv @@ -1,5 +1,5 @@ -,hours -id,weight -1,73.0 -2,182.5 -3,109.5 +,hours,,hours +id,weight,num_time_steps,time_scale +1,73.0,24,1.0 +2,182.5,24,1.0 +3,109.5,24,1.0