Project restart
This commit is contained in:
13
test/validation/items/plot/plot.py
Normal file
13
test/validation/items/plot/plot.py
Normal file
@@ -0,0 +1,13 @@
|
||||
import random
|
||||
import py_func.tm as tm
|
||||
from py_func.tm import FunctionItem
|
||||
|
||||
def random_value():
|
||||
return random.random()
|
||||
|
||||
class LastValues(FunctionItem):
|
||||
def exec(self, name):
|
||||
res = tm.last_plot_value(name)
|
||||
self.reportValue('my_reported_value', res)
|
||||
print("Last plot value: {}".format(res))
|
||||
return res
|
||||
Reference in New Issue
Block a user