import sys from TellClient import TellClient import code tell = TellClient("http://Alexandres-MBP.psi.ch:8080") def info(): tell.print_info() def help(): print ("Commands: help(), info(), mount(segment, puck, sample), unmount(), scan(segment, puck, sample=None), move_cold(), trash(), abort()\n") def mount(segment, puck, sample): tell.mount(segment, puck, sample, True, True) def move_cold(): tell.mount(force=True) def unmount(): tell.move_cold() def trash(): tell.trash() def abort(): tell.abort_cmd() def scan(segment, puck, sample=None): if sample is None: tell.scan_pin(segment, puck, True) else: tell.scan_pin(segment, puck, sample, True) info() help() #for line in sys.stdin: # tell.print_info() #print ("", end='\r> ') code.interact(local=locals())