Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

convert all graph data where necessary before saving to make it json serializable #90

Merged
merged 3 commits into from
Oct 21, 2024

Conversation

AnniekStok
Copy link
Collaborator

A fix for the np.uint64 is not json serializable error that pops up when saving the tracks after you have added new nodes with the points or labels layer.

if not isinstance(self.time_attr, np.ndarray)
else self.time_attr.tolist(),
"time_attr": (
self.time_attr.astype(
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is this part for? We aren't saving the time values, just the actual time attribute, which should be a string.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oops you're right, that is a mistake! I forgot to remove that when I pushed.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Phew okay good! I removed it, so I think I can merge now

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks!!

@cmalinmayor cmalinmayor merged commit 240db32 into main Oct 21, 2024
6 checks passed
@cmalinmayor cmalinmayor deleted the fix_graph_data_json_serializable branch October 21, 2024 15:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants