From 703435cdd34f6ab0f0a7453e85eacfd8555239f6 Mon Sep 17 00:00:00 2001 From: vvbragin Date: Fri, 3 May 2024 18:02:40 +0200 Subject: [PATCH] Fixed a bug in `gatherDataFromFiles()` where cellGids for node 0 were lost --- CHANGES.md | 2 ++ netpyne/sim/gather.py | 6 +++--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/CHANGES.md b/CHANGES.md index 9d51cc57e..6881d80f9 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -16,6 +16,8 @@ - syncLines in rasterPlot restored +- Fixed a bug in `gatherDataFromFiles()` where cellGids for node 0 were lost + # Version 1.0.6 **New features** diff --git a/netpyne/sim/gather.py b/netpyne/sim/gather.py index e5872147a..566ba379a 100644 --- a/netpyne/sim/gather.py +++ b/netpyne/sim/gather.py @@ -499,9 +499,9 @@ def sort(popKeyAndValue): for key in singleNodeVecs: allSimData[key] = list(fileData['simData'][key]) allPopsCellGids = {popLabel: [] for popLabel in nodePopsCellGids} - else: - for popLabel, popCellGids in nodePopsCellGids.items(): - allPopsCellGids[popLabel].extend(popCellGids) + + for popLabel, popCellGids in nodePopsCellGids.items(): + allPopsCellGids[popLabel].extend(popCellGids) mergedFiles.append(file)