mirror of
https://github.com/m-labs/artiq.git
synced 2024-12-25 03:08:27 +08:00
master/db: exclude Notifier attributes from kernel attr init
This commit is contained in:
parent
c0c0137d9a
commit
45c0e2874f
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user