feat: gate route_tuple helper

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
2026-06-21 17:35:51 +02:00
parent 11772bc29d
commit f0f8676eaa
2 changed files with 26 additions and 0 deletions
+15
View File
@@ -0,0 +1,15 @@
# gates/gate.py
import io
import math
import numpy as np
import torch
from PIL import Image
from . import gate_bus
MAX_ROUTES = 10
def route_tuple(chosen, image, blocker, max_routes=MAX_ROUTES):
return tuple(image if i == chosen else blocker for i in range(max_routes))