forked from M-Labs/artiq
1
0
Fork 0

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:
Sebastien Bourdeauducq 2015-08-06 18:23:09 +08:00
parent fd795724f2
commit 59a29ae04b
1 changed files with 0 additions and 6 deletions

View File

@ -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.