CAVEconnectome / CAVEclient

This is the python client for accessing REST APIs within the Connectome Annotation Versioning Engine.
https://caveconnectome.github.io/CAVEclient/
MIT License
21 stars 11 forks source link

Fix division by zero #123

Closed arie-matsliah closed 11 months ago

arie-matsliah commented 11 months ago

Caught when trying to map few root ids to 630:

candidates = cave_client.chunkedgraph.suggest_latest_roots(rid, mat_timestamp, return_all=True) File "/Users/arie/mambaforge/envs/codex/lib/python3.9/site-packages/caveclient/chunkedgraph.py", line 892, in suggest_latest_roots [ File "/Users/arie/mambaforge/envs/codex/lib/python3.9/site-packages/caveclient/chunkedgraph.py", line 893, in len( ZeroDivisionError: division by zero params: 720575940616772438 with 2023-03-21 08:10:01.194185+00:00 (v630) same if return_all=False

fcollman commented 11 months ago

I think this was addressed in a better way by #124