You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi @sylvainschmitt ,
Thank you for building SSDM!
Because I'm working on simple simulations with a single variable I discovered a simple bug: when using a RasterLayer as the Env variable in the function modelling() I got an error.
My workaround is currently to wrap my RasterLayer into a call of stack().
But it would great if it wouldn't be necessary when you only need a single environmental variable.
Possible bug origin: I think the problem comes from
Hi @sylvainschmitt ,
Thank you for building SSDM!
Because I'm working on simple simulations with a single variable I discovered a simple bug: when using a
RasterLayer
as theEnv
variable in the functionmodelling()
I got an error.Here is a minimal reprex:
Minimal Reproductible Example
My workaround is currently to wrap my
RasterLayer
into a call ofstack()
.But it would great if it wouldn't be necessary when you only need a single environmental variable.
Possible bug origin: I think the problem comes from
SSDM/R/modelling.R
Line 298 in 971795b
It could be replaced by
if (!inherits(Env, "Raster"))
I'm going to check if it doesn't break anything before making a PR ;)The text was updated successfully, but these errors were encountered: