Skip to content

Commit

Permalink
Correct BIOMOD_EnsembleModeling when multiple PA datasets (obs and fi…
Browse files Browse the repository at this point in the history
…t not matching when calling bm_FindOptimStat)
  • Loading branch information
MayaGueguen committed Jun 6, 2024
1 parent 4318a63 commit 8eaa324
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 4 deletions.
3 changes: 2 additions & 1 deletion R/BIOMOD_EnsembleModeling.R
Original file line number Diff line number Diff line change
Expand Up @@ -666,7 +666,8 @@ BIOMOD_EnsembleModeling <- function(bm.mod,
if (all(!eval.lines)) { eval.lines <- !eval.lines }
}
} else {
eval.lines <- rep(TRUE, length(pred.bm))
eval.lines <- rep(FALSE, length(obs))
eval.lines[as.numeric(rownames(pred.newdata))] <- TRUE
}


Expand Down
11 changes: 9 additions & 2 deletions docs/articles/news.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion vignettes/news.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@ vignette: >

##### Bugfix

- 4.2-5-2 : always keep same order for variable names for `new.env` in `BIOMOD_Projection` and `BIOMOD_EnsembleForecasting`
- 4.2-5-2 :
+ fixed `BIOMOD_EnsembleModeling` when multiple PA datasets (`obs` and `fit` not matching when calling `bm_FindOptimStat`)
+ always keep same order for variable names for `new.env` in `BIOMOD_Projection` and `BIOMOD_EnsembleForecasting`
- 4.2-5-1 :
+ removed `tests/` folder (unused)
+ fixed check for variable names for `new.env` in `BIOMOD_Projection` and `BIOMOD_EnsembleForecasting`
Expand Down

0 comments on commit 8eaa324

Please sign in to comment.