Skip to content
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

Errors fitting GPS data version 0.4.0 #15

Closed
istaniland opened this issue Mar 27, 2020 · 4 comments
Closed

Errors fitting GPS data version 0.4.0 #15

istaniland opened this issue Mar 27, 2020 · 4 comments

Comments

@istaniland
Copy link

Hi Ian,
Not a bug most likely user error!
I am getting the following error when I try to fit GPS data

fit_ssm(gps,vmax = 3,model = "crw",time.step = 10)

pre-filtering data...

fitting SSM...
Error in optim(par = c(logD = 10, l_rho_o = 0), fn = function (x = last.par[-random], :
L-BFGS-B needs finite values of 'fn'
Error in optimHess(par.fixed, obj$fn, obj$gr) :
gradient in optim evaluated to length 1 not 2

A tibble: 1 x 3

id ssm converged

1 W8254 FALSE

Any pointers appreciated!

Cheers

Iain Staniland

Desktop :

  • Windows 10
  • RStudio
  • R VersionR-3.6.1

FoiegrasGPS.zip

@ianjonsen
Copy link
Owner

Hi Iain, Hmm, you did find a wee bug in the prefilter code; GPS locations weren't getting assigned appropriately. I've added a temporary fix to the dev version, which you can get via:

remotes::install_github("ianjonsen/foieGras@dev")

Thanks for pointing this out. Cheers, Ian

@istaniland
Copy link
Author

istaniland commented Mar 30, 2020 via email

@ianjonsen
Copy link
Owner

Ugh, sorry. Should be all fixed now, your example works for me. All updates are now in the master branch - install_github("ianjonsen/foieGras") will install the fixes for you.

ianjonsen pushed a commit that referenced this issue Apr 11, 2020
@istaniland
Copy link
Author

istaniland commented Apr 20, 2020 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants