Skip to content

Commit a335af1

Browse files
Merge pull request #292 from NeuroML/feat/vispy-2-radii
fix(vispy): use proximal and distal radii for mesh
2 parents 96eb97a + dde5d67 commit a335af1

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

pyneuroml/plot/PlotMorphologyVispy.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -724,10 +724,11 @@ def plot_3D_cell_morphology(
724724
length = cell.get_segment_length(seg.id)
725725

726726
# round up to precision
727-
r = round(p.diameter / 2, mesh_precision)
727+
r1 = round(p.diameter / 2, mesh_precision)
728+
r2 = round(d.diameter / 2, mesh_precision)
728729
key = (
729-
f"{r:.{mesh_precision}f}",
730-
f"{r:.{mesh_precision}f}",
730+
f"{r1:.{mesh_precision}f}",
731+
f"{r2:.{mesh_precision}f}",
731732
f"{round(length, mesh_precision):.{mesh_precision}f}",
732733
)
733734

0 commit comments

Comments
 (0)