-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error in BIOMOD_Projection using sfLapply #265
Comments
Hello Pablo, The problem you encounter is linked to
Using the Additionally note that instead of running your different workflow in parallel you could also have run them sequentially while using the internal parallelization with argument Cheers, |
Dear Remi, Thank you very much for your quick reply. I was striving for three days :-). I had the impression the issue was related to SpatRaster because the code used to work with the previous version using a RasterStack. Thanks for the suggestion of using of nb.cpu, I will make some tests, however it doesn't used to work in Mac OS. Cheers, Pablo |
Dear Pablo, Concerning the Cheers, |
Dear Rémi, Thank you again for your attention. I did some changes in the script and now I model all possible combinations between all environmental vars. The code is almost the same with some minor changes. Also added some code for getting and writing evaluation and var importance tables. The code works great with biomod example data, occ and environmental, and also when using example occ data and loading predictors from a folder. However, for some reason I cannot understand why it fails when I use my own data (occ and loading predictors from a folder - the same environmental used with GuluGulo data - ) but it succeeds when I use my occurrence data and biomod example data as predictors (just can't imagine why). The error apparently is occurring in BIOMOD_EnsembleModeling:
But oddly occurs in 2 of the three models, with 1 model fully computed. I noticed changing em.by in BIOMOD_EnsembleModeling result in success but, as I said, don't know why it works using biomod environmental data. Sorry for bringing you more issues :-). Cheers, Pablo |
Dear Pablo, |
Dear Rémy, Thank you again! Everything working great now :-). Cheers, Pablo |
Hi biomod team,
I am trying to create separate models for each environmental layer using the same PA data. The code works fine using lapply but it fails when I try it in parallel using sfLapply.
Cheers,
Pablo
Code used to get the error
Environment Information
Please paste the output of
sessionInfo()
in your current R session below.Additional information
Testing the code in chunks I've noticed it worked in sfLapply for BIOMOD_Modeling, but fails in the next step BIOMOD_Projection.
The text was updated successfully, but these errors were encountered: