forked from M-Labs/artiq
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).
This commit is contained in:
parent
fd795724f2
commit
59a29ae04b
|
@ -223,12 +223,6 @@ class HasEnvironment:
|
||||||
raise ValueError("Result is already realtime")
|
raise ValueError("Result is already realtime")
|
||||||
self.__rdb.nrt[key] = value
|
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):
|
def get_result(self, key):
|
||||||
"""Retrieves the value of a result.
|
"""Retrieves the value of a result.
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue