From 1335c818c5230543be0c172109e16a8432dd5e07 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jaquier=20Aur=C3=A9lien=20Tristan?= Date: Thu, 30 May 2024 14:11:45 +0200 Subject: [PATCH] fix nwbreader for when target_protocol is not present in data file --- bluepyefe/nwbreader.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bluepyefe/nwbreader.py b/bluepyefe/nwbreader.py index 51d4361..0f2bd8b 100644 --- a/bluepyefe/nwbreader.py +++ b/bluepyefe/nwbreader.py @@ -175,7 +175,8 @@ def read(self): ec for ec in self.content["data_organization"][cell_id] if ec.lower() == ecode.lower() - ) + ), + None ) if new_ecode: logger.debug(