From b045e504e044c6084759ada9d9981c85fcb5e1d7 Mon Sep 17 00:00:00 2001 From: nrnhines Date: Sun, 7 Jan 2024 04:03:07 -0500 Subject: [PATCH] cell builder session files involving extracellular could not be saved. (#2651) --- src/ivoc/datapath.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/ivoc/datapath.cpp b/src/ivoc/datapath.cpp index cee0f49d5b..c4da677e77 100644 --- a/src/ivoc/datapath.cpp +++ b/src/ivoc/datapath.cpp @@ -462,7 +462,12 @@ void HocDataPathImpl::search(Prop* prop, double x) { if (memb_func[type].hoc_mech) { pd = prop->ob->u.dataspace[ir].pval; } else { - pd = static_cast(prop->param_handle_legacy(ir)); + if (type == EXTRACELL && ir == neuron::extracellular::vext_pseudoindex()) { + // skip as it was handled by caller + continue; + } else { + pd = static_cast(prop->param_handle_legacy(ir)); + } } imax = hoc_total_array_data(psym, 0); for (i = 0; i < imax; ++i) {