Skip to content

Commit

Permalink
Merge branch 'ant1490/bug' of https://github.com/rte-antares-rpackage…
Browse files Browse the repository at this point in the history
…/antaresRead into ant1490/bug
  • Loading branch information
berthetclement committed May 30, 2024
2 parents 5d7129e + cec32ef commit 9bbc13c
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions R/readInputClusters.R
Original file line number Diff line number Diff line change
Expand Up @@ -222,9 +222,10 @@ readInputRES <- function(areas = "all",
mid <- .importInputTS(cl, timeStep, opts, filePattern, "production",
inputTimeStep = "hourly", type = "matrix")
if (is.null(mid)){
timeId_value <- 1:8736
tsId_value <- replicate(8736,1)
production_value <- replicate(8736,0)
nb_rows_ts <- opts$timeIdMax
timeId_value <- seq(1,nb_rows_ts)
tsId_value <- replicate(nb_rows_ts,1)
production_value <- replicate(nb_rows_ts,0)
mid <- data.table("timeId" = timeId_value, "tsId" = tsId_value, "production" = production_value)
}
mid$area <- x
Expand Down

0 comments on commit 9bbc13c

Please sign in to comment.