Skip to content

Commit 088b7b5

Browse files
committed
Merge branch 'main' into good-bad-controls
2 parents 2d6d683 + 9ac59b5 commit 088b7b5

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

src/y0/dsl.py

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,17 @@
4848
"R",
4949
"S",
5050
"T",
51+
"U",
5152
"W",
5253
"X",
5354
"Y",
5455
"Z",
56+
"U1",
57+
"U2",
58+
"U3",
59+
"U4",
60+
"U5",
61+
"U6",
5562
"V1",
5663
"V2",
5764
"V3",
@@ -1320,11 +1327,12 @@ def _iter_variables(self) -> Iterable[Variable]:
13201327
Q = QFactor
13211328

13221329
AA = Variable("AA")
1323-
A, B, C, D, E, F, G, M, R, S, T, W, X, Y, Z = map(Variable, "ABCDEFGMRSTWXYZ") # type: ignore
1330+
A, B, C, D, E, F, G, M, R, S, T, U, W, X, Y, Z = map(Variable, "ABCDEFGMRSTUWXYZ") # type: ignore
1331+
U1, U2, U3, U4, U5, U6 = [Variable(f"U{i}") for i in range(1, 7)]
13241332
V1, V2, V3, V4, V5, V6 = [Variable(f"V{i}") for i in range(1, 7)]
13251333
W0, W1, W2, W3, W4, W5, W6 = [Variable(f"W{i}") for i in range(7)]
13261334
Y1, Y2, Y3, Y4, Y5, Y6 = [Variable(f"Y{i}") for i in range(1, 7)]
1327-
Z1, Z2, Z3, Z4, Z5, Z6 = [Variable(f"Z{i}") for i in range(1, 7)]
1335+
Z1, Z2, Z3, Z4, Z5, Z6 = [Z[i] for i in range(1, 7)]
13281336

13291337

13301338
def _sorted_variables(variables: Iterable[Variable]) -> Tuple[Variable, ...]:

0 commit comments

Comments
 (0)