Commit 8377d3c5 authored by Delaigue Olivier's avatar Delaigue Olivier
Browse files

Merge branch...

Merge branch '137-fix-extractoutputsmodel-function-to-manage-the-new-elements-of-outputsmodel' into 'dev'

Resolve "Fix .ExtractOutputsModel function to manage the new elements of OutputsModel"

Closes #137

See merge request !65
Showing with 3 additions and 2 deletions
+3 -2
......@@ -2,6 +2,6 @@ SeriesAggreg.OutputsModel <- function(x, Format, ...) {
SeriesAggreg.list(x,
Format,
ConvertFun = NA,
except = c("WarmUpQsim", "StateEnd", "Param"),
except = c("RunOptions", "StateEnd"),
...)
}
......@@ -100,7 +100,8 @@ SeriesAggreg.list <- function(x,
# Exploration of embedded lists and data.frames
if (is.null(recursive) || recursive) {
listCols <- x[sapply(x, inherits, "list")]
listCols <- x[!names(x) %in% except]
listCols <- listCols[sapply(listCols, inherits, "list")]
dfCols <- x[sapply(x, inherits, "data.frame")]
dfCols <- c(dfCols, x[sapply(x, inherits, "matrix")])
listCols <- listCols[setdiff(names(listCols), names(dfCols))]
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment