Re-aim cans 1, 2, 7 and 8 on the XCHC stage map.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
jimmyandClaude Opus 5.5 committed 2026-10-22 20:03:18 +13:00
1 parent 2219788904
commit e96b31ab66
2 files changed
+7 -6

No files matched your search

+4 -4
View File
@@ -27,7 +27,7 @@
"universe": 0, "universe": 0,
"address": 87, "address": 87,
"channels": 8, "channels": 8,
"direction": 90 "direction": 71
}, },
"#2": { "#2": {
"x": -3.5, "x": -3.5,
@@ -38,7 +38,7 @@
"universe": 0, "universe": 0,
"address": 95, "address": 95,
"channels": 8, "channels": 8,
"direction": 90 "direction": 105
}, },
"#3": { "#3": {
"x": -1.8, "x": -1.8,
@@ -93,7 +93,7 @@
"universe": 0, "universe": 0,
"address": 135, "address": 135,
"channels": 8, "channels": 8,
"direction": -72 "direction": -103
}, },
"#8": { "#8": {
"x": 3.5, "x": 3.5,
@@ -104,7 +104,7 @@
"universe": 0, "universe": 0,
"address": 143, "address": 143,
"channels": 8, "channels": 8,
"direction": -90 "direction": -72
}, },
"M1": { "M1": {
"x": -0.3, "x": -0.3,
+3 -2
View File
@@ -59,7 +59,7 @@ def test_xchc_patch_matches_the_stage_map():
assert by_id["M3"].address == 257 and by_id["M3"].channels == 43 assert by_id["M3"].address == 257 and by_id["M3"].channels == 43
assert by_id["M3"].x == -1.75 and by_id["M3"].y == -7.65 assert by_id["M3"].x == -1.75 and by_id["M3"].y == -7.65
assert by_id["M4"].address == 300 and by_id["M4"].x == 1.75 assert by_id["M4"].address == 300 and by_id["M4"].x == 1.75
assert by_id["#1"].direction == 90 and by_id["#8"].direction == -90 assert by_id["#1"].direction == 71 and by_id["#8"].direction == -72
assert by_id["#3"].direction == 0 and by_id["#14"].direction == -179 assert by_id["#3"].direction == 0 and by_id["#14"].direction == -179
assert by_id["M1"].zero == 0 and by_id["M4"].zero == 0 assert by_id["M1"].zero == 0 and by_id["M4"].zero == 0
assert stage.warnings == [] assert stage.warnings == []
@@ -215,13 +215,14 @@ def test_http_state_follows_artnet():
def test_heading_is_stored_in_the_map(tmp_path): def test_heading_is_stored_in_the_map(tmp_path):
target = tmp_path / "map.json" target = tmp_path / "map.json"
target.write_text((ROOT / "stage" / "map.json").read_text()) target.write_text((ROOT / "stage" / "map.json").read_text())
before = json.loads(target.read_text())["fixtures"]
stage = load_stage(target) stage = load_stage(target)
assert wrap_degrees(270) == -90 assert wrap_degrees(270) == -90
set_heading(stage, "#1", direction=45) set_heading(stage, "#1", direction=45)
set_heading(stage, "M1", zero=-30) set_heading(stage, "M1", zero=-30)
saved = json.loads(target.read_text()) saved = json.loads(target.read_text())
assert saved["fixtures"]["#1"]["direction"] == 45 assert saved["fixtures"]["#1"]["direction"] == 45
assert saved["fixtures"]["#2"]["direction"] == 90 assert saved["fixtures"]["#2"]["direction"] == before["#2"]["direction"]
assert saved["fixtures"]["M1"]["zero"] == -30 assert saved["fixtures"]["M1"]["zero"] == -30
assert saved["fixtures"]["M2"]["zero"] == 0 assert saved["fixtures"]["M2"]["zero"] == 0
again = load_stage(target) again = load_stage(target)