From 9c63297d5840828def334e00e56e75689879d56b Mon Sep 17 00:00:00 2001 From: vvbragin Date: Wed, 14 Aug 2024 10:05:10 +0200 Subject: [PATCH] fix in fromListConn --- netpyne/network/conn.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/netpyne/network/conn.py b/netpyne/network/conn.py index cd7c1f4b8..033f5298f 100644 --- a/netpyne/network/conn.py +++ b/netpyne/network/conn.py @@ -856,7 +856,7 @@ def fromListConn(self, preCellsTags, postCellsTags, connParam): if 'loc' in connParam and isinstance(connParam['loc'], list): connParam['locFromList'] = list(connParam['loc']) # if delay is a list, copy to locFromList - if connParam['synsPerConn'] == 1: + if connParam.get('synsPerConn', 1) == 1: if isinstance(connParam.get('sec'), list): connParam['secFromList'] = list(connParam['sec']) else: