Skip to content

Commit

Permalink
fix(3dplotter): disable optimized loading for older HDF5 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
sanjayankur31 committed Oct 4, 2023
1 parent f2abed7 commit d1568e6
Showing 1 changed file with 13 additions and 9 deletions.
22 changes: 13 additions & 9 deletions pyneuroml/plot/PlotMorphologyVispy.py
Original file line number Diff line number Diff line change
Expand Up @@ -306,15 +306,19 @@ def plot_interactive_3D(
print(f"Plotting {nml_file}")

if type(nml_file) is str:
nml_model = read_neuroml2_file(
nml_file,
include_includes=False,
check_validity_pre_include=False,
verbose=False,
optimized=True,
)
# load bits we need to plot the model
load_minimal_morphplottable__model(nml_model, nml_file)
# load without optimization for older HDF5 API
# TODO: check if this is required: must for MultiscaleISN
if nml_file.endswith(".h5"):
nml_model = read_neuroml2_file(nml_file)
else:
nml_model = read_neuroml2_file(
nml_file,
include_includes=False,
check_validity_pre_include=False,
verbose=False,
optimized=True,
)
load_minimal_morphplottable__model(nml_model, nml_file)

if title is None:
try:
Expand Down

0 comments on commit d1568e6

Please sign in to comment.