trackintel icon indicating copy to clipboard operation
trackintel copied to clipboard

location_identifier raises key error if all staypoints are pre filtered

Open henrymartin1 opened this issue 2 years ago • 0 comments

If the tracking quality is bad and all staypoints are pre-filtered, then the variable method_val does not get the column purpose and therefore the line 74 raises a key error.

I think the behavior should be that the staypoints are returned with a nan-filled or empty purpose column.

henrymartin1 avatar Jun 06 '22 23:06 henrymartin1