Script execution
This commit is contained in:
@@ -145,7 +145,7 @@ def get_blocks():
|
|||||||
|
|
||||||
|
|
||||||
def detect_pucks(point_list, block_id=None):
|
def detect_pucks(point_list, block_id=None):
|
||||||
for puck in get_pucks(id):
|
for puck in get_pucks(block_id):
|
||||||
puck.detect = DET_ERROR
|
puck.detect = DET_ERROR
|
||||||
for point in point_list:
|
for point in point_list:
|
||||||
match = puck.match(point[0], point[1])
|
match = puck.match(point[0], point[1])
|
||||||
@@ -155,6 +155,4 @@ def detect_pucks(point_list, block_id=None):
|
|||||||
elif match==DET_MINISPINE:
|
elif match==DET_MINISPINE:
|
||||||
puck.detect = DET_EMPTY if (puck.detect==DET_UNIPUCK) else DET_MINISPINE
|
puck.detect = DET_EMPTY if (puck.detect==DET_UNIPUCK) else DET_MINISPINE
|
||||||
|
|
||||||
detect_pucks(points)
|
|
||||||
for puck in get_pucks():
|
|
||||||
print puck.id, puck.detect
|
|
||||||
|
|||||||
Reference in New Issue
Block a user