Skip to content

Commit c46ac17

Browse files
committed
clear tag method
1 parent b41ad8d commit c46ac17

1 file changed

Lines changed: 1 addition & 20 deletions

File tree

modules.py

Lines changed: 1 addition & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -572,31 +572,12 @@ def find_type_in_tags_array(cellColorsArray, tagsArray, mapArray,
572572

573573
# go through the results
574574
for this_16_bits in np_array_of_scanned_colors:
575-
576-
''' Old method
577-
# look for this result in tags array from JSON
578-
# and return only where TRUE appears in results
579-
# this_tag = np.where([
580-
# (this_16_bits == tag).all()
581-
# for tag in tagsArray
582-
# ])[0]
583-
584-
# if this tag is not found return -1
585-
if this_tag == None:
586-
scan_results_array.append([-1, 0])
587-
# else return the tag location in the list
588-
else:
589-
type_number = mapArray[this_tag]
590-
rotation_value = rotations_from_settings[this_tag]
591-
# finally add to array
592-
'''
593-
594575
result_tag = brick_rotation_check(this_16_bits, tagsArray, mapArray)
576+
# if no results were found
595577
if result_tag == None:
596578
result_tag = [-1, -1]
597579
else:
598580
scan_results_array.append(result_tag)
599-
600581
# finally, return this list to main program for UDP
601582
return scan_results_array
602583

0 commit comments

Comments
 (0)