bohrer-lab / ecodata-matlab

Create customized animated maps of animal movements
https://ecodata-animate.readthedocs.io/
MIT License
4 stars 2 forks source link

Animator doesn't read some animal names (integers?) #71

Closed sarahcd closed 1 year ago

sarahcd commented 1 year ago

Describe the bug The Animator loads the correct time range and geographic extent of a csv file downloaded from Movebank, but does not load any individual names and prints the error below. I tried this with csvs from many other studies and they all loaded as expected. The only difference I could see is that these IDs are all integer values. To test this, I renamed the IDs to have a prefix "moose" (e.g., "1" becomes "moose1"). After making this change, the data load as expected.

To Reproduce Steps to reproduce the behavior:

  1. Download csv of data from study "Peters Hebblewhite Alberta-BC Moose"
  2. In the Animator, click "Select track data" and navigate to the csv file.

Expected behavior The animal IDs stored in individual_local_identifier should be displayed.

Error log Brace indexing is not supported for variables of this type.

Error in animator/update_widgets_from_track_data (line 237)

Error in animator/SelecttrackdataButtonPushed (line 374)

Error in appdesigner.internal.service.AppManagementService/executeCallback (line 171)

Error in matlab.apps.AppBase>@(source,event)executeCallback(ams,app,callback,requiresEventData,event) (line 62)**

Desktop (please complete the following information):