From 457e00f05894b6bafe9e995fda59590481161239 Mon Sep 17 00:00:00 2001 From: Max Zwiessele Date: Fri, 9 May 2014 14:06:41 +0100 Subject: [PATCH] [caching] when reset --- GPy/util/caching.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/GPy/util/caching.py b/GPy/util/caching.py index c8cf7149..583cb26f 100644 --- a/GPy/util/caching.py +++ b/GPy/util/caching.py @@ -119,7 +119,7 @@ class Cacher(object): """ Totally reset the cache """ - [a().remove_observer(self, self.on_cache_changed) if (a() is not None) else None for a in self.cached_input_ids.values()] + [a().remove_observer(self, self.on_cache_changed) if (a() is not None) else None for [a, _] in self.cached_input_ids.values()] self.cached_input_ids = {} self.cached_outputs = {} self.inputs_changed = {}