Skip to content

Commit

Permalink
fix progress bar for neuprint.fetch_mesh_neurons
Browse files Browse the repository at this point in the history
  • Loading branch information
schlegelp committed Aug 16, 2024
1 parent 5d21d13 commit 8e4db44
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions navis/interfaces/neuprint.py
Original file line number Diff line number Diff line change
Expand Up @@ -194,8 +194,8 @@ def fetch_mesh_neuron(x, *, lod=1, with_synapses=False, missing_mesh='raise',
# Check if vol.mesh.get has a lod argument
if lod is not None and 'lod' not in vol.mesh.get.__code__.co_varnames:
logger.warning(
'This dataset does not support LODs. '
'Will ignore the `lod` argument. '
'This dataset does not have multi-resolution meshes and '
'the `lod` parameter will be ignored. '
'You can silence this warning by setting `lod=None`.')
lod = None

Expand Down Expand Up @@ -228,7 +228,7 @@ def fetch_mesh_neuron(x, *, lod=1, with_synapses=False, missing_mesh='raise',
nl = dv.get_meshes(meta.bodyId.values,
on_error=missing_mesh,
output='navis',
progress=meta.shape[0] == 1 or config.pbar_hide,
progress=meta.shape[0] > 1 and not config.pbar_hide,
max_threads=1 if not parallel else max_threads,
server=server,
node=node)
Expand Down

0 comments on commit 8e4db44

Please sign in to comment.