ctmm-initiative / ctmm

Continuous-Time Movement Modeling. Functions for identifying, fitting, and applying continuous-space, continuous-time stochastic movement models to animal tracking data.
http://biology.umd.edu/movement.html
43 stars 10 forks source link

Error for `ctmm.fit` with Brownian Motion #27

Closed jmsigner closed 5 years ago

jmsigner commented 5 years ago

If I run the following example:

library(ctmm)

data("buffalo")
c1 <- buffalo[["Cilla"]]
bm <- ctmm.fit(c1, ctmm(tau = Inf))

I encounter the following error:

# Error in unit.ctmm(CTMM, length = SCALE) :
#  trying to get slot "par" from an object of a basic class ("numeric") with no slots

I am using version 0.5.2 of ctmm. For older versions of ctmm the above code seems to work as expected.

chfleming commented 5 years ago

Fixed in the master branch.

Thanks.