Skip to content
This repository has been archived by the owner on Jun 30, 2024. It is now read-only.

.from_idtrackerai fails when "setup_points" value is None #39

Closed
DeanTM opened this issue Nov 15, 2021 · 1 comment
Closed

.from_idtrackerai fails when "setup_points" value is None #39

DeanTM opened this issue Nov 15, 2021 · 1 comment

Comments

@DeanTM
Copy link
Collaborator

DeanTM commented Nov 15, 2021

For some reason traj_dict["setup_points"] can be None, so that the first if-clause passes but the second raises an error.

if "setup_points" in traj_dict and "border" in traj_dict["setup_points"]:

Perhaps defining traj_dict["setup_points"] = {} earlier in the code, or deleting traj_dict["setup_points"] if it's value is None, would avoid this problem.

@fjhheras
Copy link
Owner

Solved with pull request #40

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants