From 59a29ae04b184d1a43b6a43ad9c7b89931bb01b5 Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Thu, 6 Aug 2015 18:23:09 +0800 Subject: [PATCH] language/environment: remove attr_rtresult This function has the typical side effect of clearing the result. When happening in build(), this caused minor trouble when using pipelined scheduling (no result displayed at all until run() proceeds). --- artiq/language/environment.py | 6 ------ 1 file changed, 6 deletions(-) diff --git a/artiq/language/environment.py b/artiq/language/environment.py index f6da67803..2d567312f 100644 --- a/artiq/language/environment.py +++ b/artiq/language/environment.py @@ -223,12 +223,6 @@ class HasEnvironment: raise ValueError("Result is already realtime") self.__rdb.nrt[key] = value - def attr_rtresult(self, key, init_value): - """Writes the value of a real-time result and sets the corresponding - ``Notifier`` as attribute. The names of the result and of the - attribute are the same.""" - setattr(self, key, set_result(key, init_value, True)) - def get_result(self, key): """Retrieves the value of a result.