Skip to content

Commit c699a25

Browse files
committed
Add neuropal script
1 parent b14a6c1 commit c699a25

2 files changed

Lines changed: 17 additions & 1 deletion

File tree

neuromlmodel.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ def add_neuroml_model(
8282
"Plotting only sphere (radius: %s) %s(%i) at %s, %s"
8383
% (radius, cell.id, cell_index, pos, pp)
8484
)
85-
sphere = pv.Sphere(center=(pp[0], pp[1], pp[2]), radius=radius)
85+
sphere = pv.Sphere(center=(pp[0], pp[1], pp[2]), radius=radius * factor)
8686

8787
plotter.add_mesh(sphere, color=color)
8888

neuropal.py

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
import pyvista as pv
2+
3+
import sys
4+
5+
6+
from neuromlmodel import add_neuroml_model
7+
8+
if __name__ == "__main__":
9+
plotter = pv.Plotter()
10+
11+
add_neuroml_model(plotter, "NeuroPAL_All_straightened.net.nml", somas_only=True)
12+
plotter.set_background("white")
13+
plotter.add_axes()
14+
15+
if "-nogui" not in sys.argv:
16+
plotter.show()

0 commit comments

Comments
 (0)