Commit 05ec510f authored by Maxime Perrotin's avatar Maxime Perrotin
Browse files

Fix handling of automatic clicks in random simulation

parent 86c4f013
......@@ -246,6 +246,7 @@ class sdlHandler(QObject):
msc_undo = Signal()
msc_redo = Signal()
allowed_messages = Signal(list)
clicker = Signal()
def __init__(self, parent):
''' Startup: check if there are some SDL files in
......@@ -716,7 +717,10 @@ class sdlHandler(QObject):
if vals['name'] == name:
argpy = vn.fromValueNotationToPySide(name, arg)
# Can't call click from this here, must send a signal
def random_step(self):
''' One step of random simulation '''
......@@ -728,7 +732,6 @@ class sdlHandler(QObject):
arg = compute_random_value(asn1_ty, self.proc.dataview)
self.click_tc(name, arg)
# Select randomly an active TC and call it
#random_tc = random.choice(list(self.active_tc))
random_tc, asn1_ty = random.choice(list(self.sim_param['random']))
except IndexError:
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment