Commit ba4ad205 authored by bliss administrator's avatar bliss administrator

[wip] debugging stp in pi_hexa

parent 448e2336
......@@ -189,7 +189,12 @@ class PI_HEXA(Controller):
def _read_all_positions(self):
cmd = self._commands[self.COMMAND.POSITIONS]
answer = self.command(cmd, nb_line=6)
try:
answer = self.command(cmd, nb_line=6)
except:
import traceback
traceback.print_exc()
raise
positions = dict()
try:
for channel_name, ans in zip(["%s=" % x for x in "XYZUVW"], answer):
......
......@@ -79,6 +79,7 @@ class BlissRepl(PythonRepl):
def stop_current_task(self, block=True, exception=gevent.GreenletExit):
current_task = self.current_task
print('stop_current_task',current_task,block,exception)
if current_task is not None:
current_task.kill(block=block, exception=exception)
......@@ -225,6 +226,7 @@ def embed(*args, **kwargs):
if stop_signals:
def stop_current_task(signum, frame, exception=gevent.GreenletExit):
print("stop_current_task",signum,frame,exception)
repl = cmd_line_i.python_input
repl.stop_current_task(block=False, exception=exception)
......
Markdown is supported
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