Skip to content

Commit

Permalink
Fix connexion issue with MAXENT tuning
Browse files Browse the repository at this point in the history
  • Loading branch information
HeleneBlt committed May 15, 2024
1 parent 073ee53 commit 3a35912
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions R/biomod2_classes_0.R
Original file line number Diff line number Diff line change
Expand Up @@ -509,6 +509,10 @@ setMethod('BIOMOD.options.dataset', signature(strategy = 'character'),
argsval <- bm_Tuning(model = mod, tuning.fun = tuning.fun, do.formula = TRUE, do.stepAIC = TRUE
, bm.options = BOM, bm.format = bm.format, calib.lines = calib.lines
, metric.eval = ifelse(mod == "MAXENT", "auc.val.avg", "TSS"))

# To avoid problem with ENMeval and "bad closing" of foreach loop
env <- foreach:::.foreachGlobals
rm(list = ls(name = env), pos = env)
}
BOD <- new('BIOMOD.options.dataset', BOM, args.values = argsval)

Expand Down

0 comments on commit 3a35912

Please sign in to comment.