Skip to content

Commit

Permalink
fix(morph-plot): handle other general cases for NeuroMLDocument
Browse files Browse the repository at this point in the history
  • Loading branch information
sanjayankur31 committed Aug 21, 2024
1 parent 89f19ff commit b7da5d9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pyneuroml/plot/PlotMorphology.py
Original file line number Diff line number Diff line change
Expand Up @@ -371,6 +371,8 @@ def plot_2D(
logger.debug(f"plottable cell model is: {plottable_nml_model.cells[0]}")
# use title from original model document
title = nml_model.id
else:
plottable_nml_model = nml_model

if title is None:
title = f"{plottable_nml_model.id}"
Expand Down
3 changes: 3 additions & 0 deletions pyneuroml/plot/PlotMorphologyVispy.py
Original file line number Diff line number Diff line change
Expand Up @@ -555,6 +555,9 @@ def plot_interactive_3D(
logger.debug(f"plottable cell model is: {plottable_nml_model.cells[0]}")
# use title from original model document
title = nml_model.id
# other networks
else:
plottable_nml_model = nml_model

if title is None:
title = f"{plottable_nml_model.id}"
Expand Down

0 comments on commit b7da5d9

Please sign in to comment.