Skip to content

Commit 7199d56

Browse files
committed
More nml tests
1 parent 9977011 commit 7199d56

4 files changed

Lines changed: 15925 additions & 14 deletions

File tree

app.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,11 @@
44
import pyvista as pv
55
import sys
66

7+
version = "v0.5"
8+
79
st_mode = "-gui" not in sys.argv
810

9-
print("Starting it all...")
11+
print("Starting OpenWorm 3D Viewer (%s)" % version)
1012

1113
if st_mode:
1214
import streamlit as st
@@ -20,7 +22,8 @@
2022
start_xvfb()
2123
st.session_state.IS_XVFB_RUNNING = True
2224

23-
st.title("OpenWorm 3D Viewer. v0.3")
25+
st.title("OpenWorm 3D Viewer (%s)" % version)
26+
2427
st.markdown(
2528
"This is a 3D viewer for a number of OpenWorm _C. elegans_ models and datasets. It uses PyVista for rendering..."
2629
)
@@ -34,14 +37,15 @@
3437
plotter = pv.Plotter()
3538

3639

37-
# add_neuroml_model(plotter, somas_only=True)
3840
add_sibernetic_model(plotter)
3941

4042
sphere = pv.Sphere(end_theta=60, radius=10, center=(0, 0, 0))
4143
plotter.add_mesh(sphere)
4244
plotter.set_background("white")
4345
plotter.add_axes()
4446

47+
add_neuroml_model(plotter, somas_only=True)
48+
4549
plotter.set_viewup([0, 10, 0])
4650

4751

0 commit comments

Comments
 (0)