From 45c0e2874f66ac2ae737daaacdb5fa0f05f0e07d Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Thu, 29 Jan 2015 23:48:39 +0800 Subject: [PATCH] master/db: exclude Notifier attributes from kernel attr init --- artiq/master/db.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/artiq/master/db.py b/artiq/master/db.py index 243045563..f6283edf4 100644 --- a/artiq/master/db.py +++ b/artiq/master/db.py @@ -9,7 +9,7 @@ class ResultDB: self.realtime_data = Notifier({x: [] for x in realtime_results}) self.data = Notifier(dict()) - def request(self, name): + def _request(self, name): try: return self.realtime_data[name] except KeyError: @@ -19,6 +19,11 @@ class ResultDB: self.data[name] = [] return self.data[name] + def request(self, name): + r = self._request(name) + r.kernel_attr_init = False + return r + def set(self, name, value): if name in self.realtime_data.read: self.realtime_data[name] = value