bohrer-lab / ecodata-matlab

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

Error when using numeric-only labels in labeled points file #98

Open jemissik opened 1 year ago

jemissik commented 1 year ago

Describe the bug If the label field in the labeled points file is numeric-only, the app reads the labels field as numeric rather than as text, which then causes an error.

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

Error in generate_frame (line 213)

Software information (please complete the following information):

Additional context This error can be worked around by adding some sort of text to the labels (e.g. a trailing underscore) so that they get read as text. The app should be fixed so that the labels are always forced to be read as text.

sarahcd commented 1 year ago

I think I have encountered similar errors when using tracking data where the Animal IDs are numeric (integer) only. Would be nice to fix it there too. Will note here if I'm able to try it in the current version.

jemissik commented 1 year ago

For the animal IDs, this should have been fixed in v1.1.0rc5, see #71

sarahcd commented 1 year ago

Oh good, please disregard!