From fbe7f1d5dd80b2ed1dbe3a8314fea5baca62b905 Mon Sep 17 00:00:00 2001
From: "Ankur Sinha (Ankur Sinha Gmail)" <sanjay.ankur@gmail.com>
Date: Tue, 9 Feb 2021 10:21:04 +0000
Subject: [PATCH 3/3] Use correct comparison operator
---
pyNN/recording/__init__.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pyNN/recording/__init__.py b/pyNN/recording/__init__.py
index d00b5523..a4fb2dd7 100644
--- a/pyNN/recording/__init__.py
+++ b/pyNN/recording/__init__.py
@@ -259,7 +259,7 @@ class Recorder(object):
description=self.population.describe(),
rec_datetime=datetime.now()) # would be nice to get the time at the start of the recording, not the end
variables_to_include = set(self.recorded.keys())
- if variables is not 'all':
+ if variables != 'all':
variables_to_include = variables_to_include.intersection(set(variables))
for variable in variables_to_include:
if variable == 'spikes':
--
2.29.2