ctmm-initiative / ctmmweb

Web app for analyzing animal tracking data, built upon ctmm R package
http://biology.umd.edu/movement.html
GNU General Public License v3.0
32 stars 21 forks source link

Import data #39

Closed NoonanM closed 6 years ago

NoonanM commented 6 years ago

When importing data via "Use Sample of Buffalo Data", if the user first sets n = 100, then goes back to change the sample size to eg. n = 500, the app is not updating.

xhdong-umd commented 6 years ago

The app is watching the event of selecting "sample" mode, then read the current value of sample size.

If you are already in "sample" mode, just changing the sample size will not trigger the event thus nothing happened. You can work around this by switch to "upload", change sample size then switch back to "sample" mode.

If this usage is common for users, I can add some code to further watch the sample size, and update the app if it's in "sample" mode.

NoonanM commented 6 years ago

@xhdong-umd I don't think it's going to be common behaviour, but we use this functionality regularly when giving demos of the app.

@chfleming @jmcalabrese What do you think about adaptive "sample" mode?

xhdong-umd commented 6 years ago

If you guys use this frequently I'll add it. I use the sample mode all the time, just didn't change sample size much.

xhdong-umd commented 6 years ago

Now the app will observe the update in sample size if already in sample mode. I'm still in the process of updating web app, since it take some time to finish.