prthm11 commited on
Commit
118d9f6
·
verified ·
1 Parent(s): 6b400cf

Update utils/block_relation_builder.py

Browse files
Files changed (1) hide show
  1. utils/block_relation_builder.py +3 -0
utils/block_relation_builder.py CHANGED
@@ -46,6 +46,9 @@ def generate_blocks_from_opcodes(opcode_counts, all_block_definitions):
46
  if opcode == "sensing_istouching": # Handle potential old opcode name
47
  opcode = "sensing_touchingobject"
48
 
 
 
 
49
  if not opcode or opcode not in all_block_definitions:
50
  print(f"Warning: Skipping opcode '{opcode}' (missing or not in definitions).")
51
  continue
 
46
  if opcode == "sensing_istouching": # Handle potential old opcode name
47
  opcode = "sensing_touchingobject"
48
 
49
+ if opcode == "sensing_touchingobject": # Handle potential old opcode name
50
+ opcode = "sensing_touchingobject"
51
+
52
  if not opcode or opcode not in all_block_definitions:
53
  print(f"Warning: Skipping opcode '{opcode}' (missing or not in definitions).")
54
  continue