Commit fca47a56 authored by Dorchies David's avatar Dorchies David
Browse files

fix(TransfoParam): issue with Cemaneige models

- Missing item "IsHyst" in `RunOptions$FeatFUN_MOD` causes crash

Regression after refactoring in #111
Showing with 5 additions and 3 deletions
+5 -3
......@@ -32,10 +32,12 @@ CreateRunOptions <- function(FUN_MOD, InputsModel,
if (IsIntStore) {
ObjectClass <- c(ObjectClass, "interception")
}
if (IsHyst) {
ObjectClass <- c(ObjectClass, "hysteresis")
if ("CemaNeige" %in% FeatFUN_MOD$Class) {
FeatFUN_MOD$IsHyst <- IsHyst
FeatFUN_MOD$NbParam <- FeatFUN_MOD$NbParam + 2
if (isHyst) {
ObjectClass <- c(ObjectClass, "hysteresis")
FeatFUN_MOD$NbParam <- FeatFUN_MOD$NbParam + 2
}
}
## SD model
......
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