WilhelmusLab / IceFloeTracker.jl

Julia package for ice floe tracker
https://wilhelmuslab.github.io/IceFloeTracker.jl/
MIT License
1 stars 2 forks source link

Tracker expects column names that are not present in all cases #362

Closed danielmwatkins closed 3 months ago

danielmwatkins commented 5 months ago

The tracker expects the columns "latitude" and "longitude", which are not present if there is a data frame with 0 rows. We should add something that expands the empty data frame to have the expected rows.

The place where I expect the change needs to be made is close to line 533 in tracker-funcs, where columns are dropped from the props table. The lat/lon columns are added after that if/then clause.

cpaniaguam commented 5 months ago

@danielmwatkins Have you been able to verify whether the patch in #363 fixed this bug?

danielmwatkins commented 3 months ago

Yes, the fix worked.