From e443f0680c3b719190e6d476118d08f06ec94ac7 Mon Sep 17 00:00:00 2001 From: Jorge Blanco Alonso Date: Fri, 5 Jan 2024 15:17:54 +0100 Subject: [PATCH] Soma summation fix for SONATA simulations - Both Cell/Soma SectionType should work --- src/coreneuron/io/reports/report_handler.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/coreneuron/io/reports/report_handler.cpp b/src/coreneuron/io/reports/report_handler.cpp index 8089b803ab..0fd48d7a0a 100644 --- a/src/coreneuron/io/reports/report_handler.cpp +++ b/src/coreneuron/io/reports/report_handler.cpp @@ -297,7 +297,8 @@ VarsToReport ReportHandler::get_summation_vars_to_report( if (report.section_type == SectionType::All) { double* variable = report_variable + segment_id; to_report.emplace_back(VarWithMapping(section_id, variable)); - } else if (report.section_type == SectionType::Cell) { + } else if (report.section_type == SectionType::Cell || + report.section_type == SectionType::Soma) { summation_report.gid_segments_[gid].push_back(segment_id); } }