Skip to content

Commit

Permalink
neuprint: Support single-resolution neuroglancer precomputed meshes
Browse files Browse the repository at this point in the history
  • Loading branch information
stuarteberg committed Oct 16, 2023
1 parent 1966f36 commit 91671f1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion navis/interfaces/neuprint.py
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,10 @@ def __fetch_mesh(bodyId, *, vol, lod, missing_mesh='raise'):
# Fetch mesh
import cloudvolume
try:
mesh = vol.mesh.get(bodyId, lod=lod)[bodyId]
if lod is None:
mesh = vol.mesh.get(bodyId)
else:
mesh = vol.mesh.get(bodyId, lod=lod)
except cloudvolume.exceptions.MeshDecodeError as err:
if 'not found' in str(err):
if missing_mesh in ['warn', 'skip']:
Expand Down

0 comments on commit 91671f1

Please sign in to comment.