This commit is contained in:
gac-S_Changer
2018-09-17 16:56:55 +02:00
parent 531c3f5dfe
commit bc21bb95a3
21 changed files with 486 additions and 114 deletions

14
script/data/pucks.py Normal file
View File

@@ -0,0 +1,14 @@
def get_puck_names():
return [str(a)+str(b) for a in BLOCKS for b in range(1,6)]
def get_puck_info():
ret = []
#for puck in get_puck_names():
for puck in BasePlate.pucks:
ret.append({"address" : str(puck.name), "status": str(puck.status), "barcode" : str(puck.id)})
return ret
def get_puck_obj(address):
return BasePlate.getChild(address)