Commit a23ba79a authored by David's avatar David
Browse files

fix(serializeIniStates): handle IniStates even it's not a list

Refs #179
Showing with 1 addition and 0 deletions
+1 -0
......@@ -61,6 +61,7 @@ OutputsModelQsim <- function(InputsModel, OutputsModel, IndPeriod_Run) {
#' @noRd
#'
serializeIniStates <- function(IniStates, InputsModel) {
if (!is.list(IniStates)) return(IniStates)
ObjectClass <- class(InputsModel)
if (!"CemaNeige" %in% ObjectClass && any(is.na(IniStates$CemaNeigeLayers$G))) {
IniStates$CemaNeigeLayers$G <- NULL
......
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