Files
led-controller/graphify-out/cache/ast/v0.9.101-s36-g1339418af9f9/1fd9417c793d1311b62decb32dd9e955a7d6efcca62c57b9f46304bd126c2a86.json
T
jimmyandClaude Opus 5.5 581b751904 feat: browser simulator served by the controller, desktop build, browser bridge
- led-simulator: the rig runs the C++ led-driver as WebAssembly (sim-driver/),
  one single-threaded worker per bar, no cross-origin isolation needed. Rooms
  (one JSON per room) with an on-page editor, and a pattern gallery. The
  Python server, Pyodide boot and ring buffer are removed.
- sim-controller sim_rig.c: serves /sim/ from an embedded pack, the page's
  WebSocket and the rooms/flash API. The desktop build embeds it too.
- bridge.c: a "browser" bridge kind that carries ESP-NOW frames to the page;
  devices announced through it are marked sim.
- UI: Simulator in the Menu, split view with resize and pop-out, swipe
  between controller and rig on phones; SIM/REAL badges in Devices.
- Fades: preset pushes and Wi-Fi driver bodies always carry fade and
  beat_time, so "off" no longer inherits an earlier fade.
- Also the sequences-v2 work in progress: desktop port, bridge firmware,
  serial bridge, Wi-Fi drivers, sequence timeline, audio and API changes.
- led-driver: ESP-NOW link, beat sync, control messages, sim hooks.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 19:32:46 +13:00

1 line
40 KiB
JSON

{"nodes": [{"id": "$graphify-root$_led_simulator_rooms_py", "label": "rooms.py", "file_type": "code", "source_file": "led-simulator/rooms.py", "source_location": "L1"}, {"id": "$graphify-root$_led_simulator_rooms_roomerror", "label": "RoomError", "file_type": "code", "source_file": "led-simulator/rooms.py", "source_location": "L42", "_callable": true, "_callable_class": true}, {"id": "valueerror", "label": "ValueError", "file_type": "code", "source_file": "", "source_location": "", "origin_file": "$graphify-root$/led-simulator/rooms.py"}, {"id": "$graphify-root$_led_simulator_rooms_num", "label": "_num()", "file_type": "code", "source_file": "led-simulator/rooms.py", "source_location": "L46", "_callable": true}, {"id": "$graphify-root$_led_simulator_rooms_check_name", "label": "check_name()", "file_type": "code", "source_file": "led-simulator/rooms.py", "source_location": "L54", "_callable": true}, {"id": "$graphify-root$_led_simulator_rooms_validate_room", "label": "validate_room()", "file_type": "code", "source_file": "led-simulator/rooms.py", "source_location": "L60", "_callable": true}, {"id": "$graphify-root$_led_simulator_rooms_wrap", "label": "_wrap()", "file_type": "code", "source_file": "led-simulator/rooms.py", "source_location": "L123", "_callable": true}, {"id": "$graphify-root$_led_simulator_rooms_fixture_leds", "label": "fixture_leds()", "file_type": "code", "source_file": "led-simulator/rooms.py", "source_location": "L133", "_callable": true}, {"id": "$graphify-root$_led_simulator_rooms_fixture_end", "label": "fixture_end()", "file_type": "code", "source_file": "led-simulator/rooms.py", "source_location": "L137", "_callable": true}, {"id": "$graphify-root$_led_simulator_rooms_room_strips", "label": "room_strips()", "file_type": "code", "source_file": "led-simulator/rooms.py", "source_location": "L144", "_callable": true}, {"id": "$graphify-root$_led_simulator_rooms_rig_placements", "label": "rig_placements()", "file_type": "code", "source_file": "led-simulator/rooms.py", "source_location": "L165", "_callable": true}, {"id": "$graphify-root$_led_simulator_rooms_rig_placements_tx", "label": "tx()", "file_type": "code", "source_file": "led-simulator/rooms.py", "source_location": "L171", "_callable": true}, {"id": "$graphify-root$_led_simulator_rooms_rig_placements_ty", "label": "ty()", "file_type": "code", "source_file": "led-simulator/rooms.py", "source_location": "L174", "_callable": true}, {"id": "$graphify-root$_led_simulator_rooms_grid_room", "label": "grid_room()", "file_type": "code", "source_file": "led-simulator/rooms.py", "source_location": "L183", "_callable": true}, {"id": "$graphify-root$_led_simulator_rooms_roomstore", "label": "RoomStore", "file_type": "code", "source_file": "led-simulator/rooms.py", "source_location": "L216", "_callable": true, "_callable_class": true}, {"id": "$graphify-root$_led_simulator_rooms_roomstore_init", "label": ".__init__()", "file_type": "code", "source_file": "led-simulator/rooms.py", "source_location": "L219", "_callable": true}, {"id": "path", "label": "Path", "file_type": "code", "source_file": "", "source_location": "", "origin_file": "$graphify-root$/led-simulator/rooms.py"}, {"id": "$graphify-root$_led_simulator_rooms_roomstore_path", "label": ".path()", "file_type": "code", "source_file": "led-simulator/rooms.py", "source_location": "L223", "_py_return_type": "Path", "_callable": true}, {"id": "$graphify-root$_led_simulator_rooms_roomstore_names", "label": ".names()", "file_type": "code", "source_file": "led-simulator/rooms.py", "source_location": "L226", "_callable": true}, {"id": "$graphify-root$_led_simulator_rooms_roomstore_exists", "label": ".exists()", "file_type": "code", "source_file": "led-simulator/rooms.py", "source_location": "L229", "_callable": true}, {"id": "$graphify-root$_led_simulator_rooms_roomstore_load", "label": ".load()", "file_type": "code", "source_file": "led-simulator/rooms.py", "source_location": "L232", "_callable": true}, {"id": "$graphify-root$_led_simulator_rooms_roomstore_save", "label": ".save()", "file_type": "code", "source_file": "led-simulator/rooms.py", "source_location": "L242", "_callable": true}, {"id": "$graphify-root$_led_simulator_rooms_roomstore_delete", "label": ".delete()", "file_type": "code", "source_file": "led-simulator/rooms.py", "source_location": "L250", "_callable": true}, {"id": "$graphify-root$_led_simulator_rooms_roomstore_all_macs", "label": ".all_macs()", "file_type": "code", "source_file": "led-simulator/rooms.py", "source_location": "L256", "_callable": true}, {"id": "$graphify-root$_led_simulator_rooms_roomstore_next_mac", "label": ".next_mac()", "file_type": "code", "source_file": "led-simulator/rooms.py", "source_location": "L265", "_callable": true}, {"id": "$graphify-root$_led_simulator_rooms_rationale_1", "label": "Rooms: where the simulator's strips are, one JSON file per room in ``rooms/``.\u2026", "file_type": "rationale", "source_file": "led-simulator/rooms.py", "source_location": "L1"}, {"id": "$graphify-root$_led_simulator_rooms_rationale_43", "label": "A room file or edit that is not valid; the message says why.", "file_type": "rationale", "source_file": "led-simulator/rooms.py", "source_location": "L43"}, {"id": "$graphify-root$_led_simulator_rooms_rationale_61", "label": "The room in canonical form, or RoomError.", "file_type": "rationale", "source_file": "led-simulator/rooms.py", "source_location": "L61"}, {"id": "$graphify-root$_led_simulator_rooms_rationale_138", "label": "Where the strip's last LED is, metres.", "file_type": "rationale", "source_file": "led-simulator/rooms.py", "source_location": "L138"}, {"id": "$graphify-root$_led_simulator_rooms_rationale_145", "label": "One entry per fixture, in file order: what the server and page need to run it.", "file_type": "rationale", "source_file": "led-simulator/rooms.py", "source_location": "L145"}, {"id": "$graphify-root$_led_simulator_rooms_rationale_166", "label": "({mac: {x0, y0, x1, y1}}, centre {x, y}) for the controller's rig layout: the\u2026", "file_type": "rationale", "source_file": "led-simulator/rooms.py", "source_location": "L166"}, {"id": "$graphify-root$_led_simulator_rooms_rationale_184", "label": "The old 2 x 8 grid (``layout`` in sim.json) as a room: same MACs, names and\u2026", "file_type": "rationale", "source_file": "led-simulator/rooms.py", "source_location": "L184"}, {"id": "$graphify-root$_led_simulator_rooms_rationale_217", "label": "The rooms/ folder: list, read, write (atomically), delete.", "file_type": "rationale", "source_file": "led-simulator/rooms.py", "source_location": "L217"}, {"id": "$graphify-root$_led_simulator_rooms_rationale_266", "label": "A MAC no room uses yet.", "file_type": "rationale", "source_file": "led-simulator/rooms.py", "source_location": "L266"}], "edges": [{"source": "$graphify-root$_led_simulator_rooms_py", "target": "json", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "led-simulator/rooms.py", "source_location": "L20", "weight": 1.0, "_python_import_module": "json", "_python_import_bindings": [["json", "json"]], "_python_import_module_binding": true}, {"source": "$graphify-root$_led_simulator_rooms_py", "target": "math", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "led-simulator/rooms.py", "source_location": "L21", "weight": 1.0, "_python_import_module": "math", "_python_import_bindings": [["math", "math"]], "_python_import_module_binding": true}, {"source": "$graphify-root$_led_simulator_rooms_py", "target": "re", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "led-simulator/rooms.py", "source_location": "L22", "weight": 1.0, "_python_import_module": "re", "_python_import_bindings": [["re", "re"]], "_python_import_module_binding": true}, {"source": "$graphify-root$_led_simulator_rooms_py", "target": "pathlib", "relation": "imports_from", "context": "import", "confidence": "EXTRACTED", "source_file": "led-simulator/rooms.py", "source_location": "L23", "weight": 1.0, "_python_import_module": "pathlib", "_python_import_bindings": [["Path", "Path"]]}, {"source": "$graphify-root$_led_simulator_rooms_py", "target": "$graphify-root$_led_simulator_layout_py", "relation": "imports_from", "context": "import", "confidence": "EXTRACTED", "source_file": "led-simulator/rooms.py", "source_location": "L25", "weight": 1.0, "_python_import_module": "layout", "_python_import_bindings": [["normalise_layout", "normalise_layout"], ["side_name", "side_name"], ["strip_places", "strip_places"]], "target_file": "$graphify-root$/led-simulator/layout.py"}, {"source": "$graphify-root$_led_simulator_rooms_py", "target": "$graphify-root$_led_simulator_rooms_roomerror", "relation": "contains", "confidence": "EXTRACTED", "source_file": "led-simulator/rooms.py", "source_location": "L42", "weight": 1.0}, {"source": "$graphify-root$_led_simulator_rooms_roomerror", "target": "valueerror", "relation": "inherits", "confidence": "EXTRACTED", "source_file": "led-simulator/rooms.py", "source_location": "L42", "weight": 1.0}, {"source": "$graphify-root$_led_simulator_rooms_py", "target": "$graphify-root$_led_simulator_rooms_num", "relation": "contains", "confidence": "EXTRACTED", "source_file": "led-simulator/rooms.py", "source_location": "L46", "weight": 1.0}, {"source": "$graphify-root$_led_simulator_rooms_py", "target": "$graphify-root$_led_simulator_rooms_check_name", "relation": "contains", "confidence": "EXTRACTED", "source_file": "led-simulator/rooms.py", "source_location": "L54", "weight": 1.0}, {"source": "$graphify-root$_led_simulator_rooms_py", "target": "$graphify-root$_led_simulator_rooms_validate_room", "relation": "contains", "confidence": "EXTRACTED", "source_file": "led-simulator/rooms.py", "source_location": "L60", "weight": 1.0}, {"source": "$graphify-root$_led_simulator_rooms_py", "target": "$graphify-root$_led_simulator_rooms_wrap", "relation": "contains", "confidence": "EXTRACTED", "source_file": "led-simulator/rooms.py", "source_location": "L123", "weight": 1.0}, {"source": "$graphify-root$_led_simulator_rooms_py", "target": "$graphify-root$_led_simulator_rooms_fixture_leds", "relation": "contains", "confidence": "EXTRACTED", "source_file": "led-simulator/rooms.py", "source_location": "L133", "weight": 1.0}, {"source": "$graphify-root$_led_simulator_rooms_py", "target": "$graphify-root$_led_simulator_rooms_fixture_end", "relation": "contains", "confidence": "EXTRACTED", "source_file": "led-simulator/rooms.py", "source_location": "L137", "weight": 1.0}, {"source": "$graphify-root$_led_simulator_rooms_py", "target": "$graphify-root$_led_simulator_rooms_room_strips", "relation": "contains", "confidence": "EXTRACTED", "source_file": "led-simulator/rooms.py", "source_location": "L144", "weight": 1.0}, {"source": "$graphify-root$_led_simulator_rooms_py", "target": "$graphify-root$_led_simulator_rooms_rig_placements", "relation": "contains", "confidence": "EXTRACTED", "source_file": "led-simulator/rooms.py", "source_location": "L165", "weight": 1.0}, {"source": "$graphify-root$_led_simulator_rooms_rig_placements", "target": "$graphify-root$_led_simulator_rooms_rig_placements_tx", "relation": "contains", "confidence": "EXTRACTED", "source_file": "led-simulator/rooms.py", "source_location": "L171", "weight": 1.0}, {"source": "$graphify-root$_led_simulator_rooms_rig_placements", "target": "$graphify-root$_led_simulator_rooms_rig_placements_ty", "relation": "contains", "confidence": "EXTRACTED", "source_file": "led-simulator/rooms.py", "source_location": "L174", "weight": 1.0}, {"source": "$graphify-root$_led_simulator_rooms_py", "target": "$graphify-root$_led_simulator_rooms_grid_room", "relation": "contains", "confidence": "EXTRACTED", "source_file": "led-simulator/rooms.py", "source_location": "L183", "weight": 1.0}, {"source": "$graphify-root$_led_simulator_rooms_py", "target": "$graphify-root$_led_simulator_rooms_roomstore", "relation": "contains", "confidence": "EXTRACTED", "source_file": "led-simulator/rooms.py", "source_location": "L216", "weight": 1.0}, {"source": "$graphify-root$_led_simulator_rooms_roomstore", "target": "$graphify-root$_led_simulator_rooms_roomstore_init", "relation": "method", "confidence": "EXTRACTED", "source_file": "led-simulator/rooms.py", "source_location": "L219", "weight": 1.0}, {"source": "$graphify-root$_led_simulator_rooms_roomstore_init", "target": "path", "relation": "references", "context": "parameter_type", "confidence": "EXTRACTED", "source_file": "led-simulator/rooms.py", "source_location": "L219", "weight": 1.0}, {"source": "$graphify-root$_led_simulator_rooms_roomstore", "target": "$graphify-root$_led_simulator_rooms_roomstore_path", "relation": "method", "confidence": "EXTRACTED", "source_file": "led-simulator/rooms.py", "source_location": "L223", "weight": 1.0}, {"source": "$graphify-root$_led_simulator_rooms_roomstore_path", "target": "path", "relation": "references", "context": "return_type", "confidence": "EXTRACTED", "source_file": "led-simulator/rooms.py", "source_location": "L223", "weight": 1.0}, {"source": "$graphify-root$_led_simulator_rooms_roomstore", "target": "$graphify-root$_led_simulator_rooms_roomstore_names", "relation": "method", "confidence": "EXTRACTED", "source_file": "led-simulator/rooms.py", "source_location": "L226", "weight": 1.0}, {"source": "$graphify-root$_led_simulator_rooms_roomstore", "target": "$graphify-root$_led_simulator_rooms_roomstore_exists", "relation": "method", "confidence": "EXTRACTED", "source_file": "led-simulator/rooms.py", "source_location": "L229", "weight": 1.0}, {"source": "$graphify-root$_led_simulator_rooms_roomstore", "target": "$graphify-root$_led_simulator_rooms_roomstore_load", "relation": "method", "confidence": "EXTRACTED", "source_file": "led-simulator/rooms.py", "source_location": "L232", "weight": 1.0}, {"source": "$graphify-root$_led_simulator_rooms_roomstore", "target": "$graphify-root$_led_simulator_rooms_roomstore_save", "relation": "method", "confidence": "EXTRACTED", "source_file": "led-simulator/rooms.py", "source_location": "L242", "weight": 1.0}, {"source": "$graphify-root$_led_simulator_rooms_roomstore", "target": "$graphify-root$_led_simulator_rooms_roomstore_delete", "relation": "method", "confidence": "EXTRACTED", "source_file": "led-simulator/rooms.py", "source_location": "L250", "weight": 1.0}, {"source": "$graphify-root$_led_simulator_rooms_roomstore", "target": "$graphify-root$_led_simulator_rooms_roomstore_all_macs", "relation": "method", "confidence": "EXTRACTED", "source_file": "led-simulator/rooms.py", "source_location": "L256", "weight": 1.0}, {"source": "$graphify-root$_led_simulator_rooms_roomstore", "target": "$graphify-root$_led_simulator_rooms_roomstore_next_mac", "relation": "method", "confidence": "EXTRACTED", "source_file": "led-simulator/rooms.py", "source_location": "L265", "weight": 1.0}, {"source": "$graphify-root$_led_simulator_rooms_num", "target": "$graphify-root$_led_simulator_rooms_roomerror", "relation": "calls", "context": "call", "confidence": "EXTRACTED", "source_file": "led-simulator/rooms.py", "source_location": "L48", "weight": 1.0}, {"source": "$graphify-root$_led_simulator_rooms_check_name", "target": "$graphify-root$_led_simulator_rooms_roomerror", "relation": "calls", "context": "call", "confidence": "EXTRACTED", "source_file": "led-simulator/rooms.py", "source_location": "L56", "weight": 1.0}, {"source": "$graphify-root$_led_simulator_rooms_validate_room", "target": "$graphify-root$_led_simulator_rooms_roomerror", "relation": "calls", "context": "call", "confidence": "EXTRACTED", "source_file": "led-simulator/rooms.py", "source_location": "L63", "weight": 1.0}, {"source": "$graphify-root$_led_simulator_rooms_validate_room", "target": "$graphify-root$_led_simulator_rooms_num", "relation": "calls", "context": "call", "confidence": "EXTRACTED", "source_file": "led-simulator/rooms.py", "source_location": "L64", "weight": 1.0}, {"source": "$graphify-root$_led_simulator_rooms_validate_room", "target": "$graphify-root$_led_simulator_rooms_wrap", "relation": "calls", "context": "call", "confidence": "EXTRACTED", "source_file": "led-simulator/rooms.py", "source_location": "L107", "weight": 1.0}, {"source": "$graphify-root$_led_simulator_rooms_fixture_end", "target": "$graphify-root$_led_simulator_rooms_fixture_leds", "relation": "calls", "context": "call", "confidence": "EXTRACTED", "source_file": "led-simulator/rooms.py", "source_location": "L139", "weight": 1.0}, {"source": "$graphify-root$_led_simulator_rooms_room_strips", "target": "$graphify-root$_led_simulator_rooms_fixture_end", "relation": "calls", "context": "call", "confidence": "EXTRACTED", "source_file": "led-simulator/rooms.py", "source_location": "L148", "weight": 1.0}, {"source": "$graphify-root$_led_simulator_rooms_room_strips", "target": "$graphify-root$_led_simulator_rooms_fixture_leds", "relation": "calls", "context": "call", "confidence": "EXTRACTED", "source_file": "led-simulator/rooms.py", "source_location": "L155", "weight": 1.0}, {"source": "$graphify-root$_led_simulator_rooms_rig_placements", "target": "$graphify-root$_led_simulator_rooms_room_strips", "relation": "calls", "context": "call", "confidence": "EXTRACTED", "source_file": "led-simulator/rooms.py", "source_location": "L178", "weight": 1.0}, {"source": "$graphify-root$_led_simulator_rooms_rig_placements", "target": "$graphify-root$_led_simulator_rooms_rig_placements_tx", "relation": "calls", "context": "call", "confidence": "EXTRACTED", "source_file": "led-simulator/rooms.py", "source_location": "L179", "weight": 1.0}, {"source": "$graphify-root$_led_simulator_rooms_rig_placements", "target": "$graphify-root$_led_simulator_rooms_rig_placements_ty", "relation": "calls", "context": "call", "confidence": "EXTRACTED", "source_file": "led-simulator/rooms.py", "source_location": "L179", "weight": 1.0}, {"source": "$graphify-root$_led_simulator_rooms_grid_room", "target": "$graphify-root$_led_simulator_rooms_validate_room", "relation": "calls", "context": "call", "confidence": "EXTRACTED", "source_file": "led-simulator/rooms.py", "source_location": "L207", "weight": 1.0}, {"source": "$graphify-root$_led_simulator_rooms_roomstore_path", "target": "$graphify-root$_led_simulator_rooms_check_name", "relation": "calls", "context": "call", "confidence": "EXTRACTED", "source_file": "led-simulator/rooms.py", "source_location": "L224", "weight": 1.0}, {"source": "$graphify-root$_led_simulator_rooms_roomstore_exists", "target": "$graphify-root$_led_simulator_rooms_roomstore_path", "relation": "calls", "context": "call", "confidence": "EXTRACTED", "source_file": "led-simulator/rooms.py", "source_location": "L230", "weight": 1.0}, {"source": "$graphify-root$_led_simulator_rooms_roomstore_load", "target": "$graphify-root$_led_simulator_rooms_roomstore_path", "relation": "calls", "context": "call", "confidence": "EXTRACTED", "source_file": "led-simulator/rooms.py", "source_location": "L233", "weight": 1.0}, {"source": "$graphify-root$_led_simulator_rooms_roomstore_load", "target": "$graphify-root$_led_simulator_rooms_roomerror", "relation": "calls", "context": "call", "confidence": "EXTRACTED", "source_file": "led-simulator/rooms.py", "source_location": "L237", "weight": 1.0}, {"source": "$graphify-root$_led_simulator_rooms_roomstore_load", "target": "$graphify-root$_led_simulator_rooms_validate_room", "relation": "calls", "context": "call", "confidence": "EXTRACTED", "source_file": "led-simulator/rooms.py", "source_location": "L240", "weight": 1.0}, {"source": "$graphify-root$_led_simulator_rooms_roomstore_save", "target": "$graphify-root$_led_simulator_rooms_validate_room", "relation": "calls", "context": "call", "confidence": "EXTRACTED", "source_file": "led-simulator/rooms.py", "source_location": "L243", "weight": 1.0}, {"source": "$graphify-root$_led_simulator_rooms_roomstore_save", "target": "$graphify-root$_led_simulator_rooms_roomstore_path", "relation": "calls", "context": "call", "confidence": "EXTRACTED", "source_file": "led-simulator/rooms.py", "source_location": "L244", "weight": 1.0}, {"source": "$graphify-root$_led_simulator_rooms_roomstore_delete", "target": "$graphify-root$_led_simulator_rooms_roomstore_path", "relation": "calls", "context": "call", "confidence": "EXTRACTED", "source_file": "led-simulator/rooms.py", "source_location": "L252", "weight": 1.0}, {"source": "$graphify-root$_led_simulator_rooms_roomstore_delete", "target": "$graphify-root$_led_simulator_rooms_roomerror", "relation": "calls", "context": "call", "confidence": "EXTRACTED", "source_file": "led-simulator/rooms.py", "source_location": "L254", "weight": 1.0}, {"source": "$graphify-root$_led_simulator_rooms_roomstore_all_macs", "target": "$graphify-root$_led_simulator_rooms_roomstore_names", "relation": "calls", "context": "call", "confidence": "EXTRACTED", "source_file": "led-simulator/rooms.py", "source_location": "L258", "weight": 1.0}, {"source": "$graphify-root$_led_simulator_rooms_roomstore_all_macs", "target": "$graphify-root$_led_simulator_rooms_roomstore_load", "relation": "calls", "context": "call", "confidence": "EXTRACTED", "source_file": "led-simulator/rooms.py", "source_location": "L260", "weight": 1.0}, {"source": "$graphify-root$_led_simulator_rooms_roomstore_next_mac", "target": "$graphify-root$_led_simulator_rooms_roomstore_all_macs", "relation": "calls", "context": "call", "confidence": "EXTRACTED", "source_file": "led-simulator/rooms.py", "source_location": "L267", "weight": 1.0}, {"source": "$graphify-root$_led_simulator_rooms_roomstore_next_mac", "target": "$graphify-root$_led_simulator_rooms_roomerror", "relation": "calls", "context": "call", "confidence": "EXTRACTED", "source_file": "led-simulator/rooms.py", "source_location": "L272", "weight": 1.0}, {"source": "$graphify-root$_led_simulator_rooms_rationale_1", "target": "$graphify-root$_led_simulator_rooms_py", "relation": "rationale_for", "confidence": "EXTRACTED", "source_file": "led-simulator/rooms.py", "source_location": "L1", "weight": 1.0}, {"source": "$graphify-root$_led_simulator_rooms_rationale_43", "target": "$graphify-root$_led_simulator_rooms_roomerror", "relation": "rationale_for", "confidence": "EXTRACTED", "source_file": "led-simulator/rooms.py", "source_location": "L43", "weight": 1.0}, {"source": "$graphify-root$_led_simulator_rooms_rationale_61", "target": "$graphify-root$_led_simulator_rooms_validate_room", "relation": "rationale_for", "confidence": "EXTRACTED", "source_file": "led-simulator/rooms.py", "source_location": "L61", "weight": 1.0}, {"source": "$graphify-root$_led_simulator_rooms_rationale_138", "target": "$graphify-root$_led_simulator_rooms_fixture_end", "relation": "rationale_for", "confidence": "EXTRACTED", "source_file": "led-simulator/rooms.py", "source_location": "L138", "weight": 1.0}, {"source": "$graphify-root$_led_simulator_rooms_rationale_145", "target": "$graphify-root$_led_simulator_rooms_room_strips", "relation": "rationale_for", "confidence": "EXTRACTED", "source_file": "led-simulator/rooms.py", "source_location": "L145", "weight": 1.0}, {"source": "$graphify-root$_led_simulator_rooms_rationale_166", "target": "$graphify-root$_led_simulator_rooms_rig_placements", "relation": "rationale_for", "confidence": "EXTRACTED", "source_file": "led-simulator/rooms.py", "source_location": "L166", "weight": 1.0}, {"source": "$graphify-root$_led_simulator_rooms_rationale_184", "target": "$graphify-root$_led_simulator_rooms_grid_room", "relation": "rationale_for", "confidence": "EXTRACTED", "source_file": "led-simulator/rooms.py", "source_location": "L184", "weight": 1.0}, {"source": "$graphify-root$_led_simulator_rooms_rationale_217", "target": "$graphify-root$_led_simulator_rooms_roomstore", "relation": "rationale_for", "confidence": "EXTRACTED", "source_file": "led-simulator/rooms.py", "source_location": "L217", "weight": 1.0}, {"source": "$graphify-root$_led_simulator_rooms_rationale_266", "target": "$graphify-root$_led_simulator_rooms_roomstore_next_mac", "relation": "rationale_for", "confidence": "EXTRACTED", "source_file": "led-simulator/rooms.py", "source_location": "L266", "weight": 1.0}], "raw_calls": [{"caller_nid": "$graphify-root$_led_simulator_rooms_num", "callee": "bool", "is_member_call": false, "indirect": true, "context": "argument", "source_file": "led-simulator/rooms.py", "source_location": "L47"}, {"caller_nid": "$graphify-root$_led_simulator_rooms_num", "callee": "int", "is_member_call": false, "indirect": true, "context": "collection", "source_file": "led-simulator/rooms.py", "source_location": "L47"}, {"caller_nid": "$graphify-root$_led_simulator_rooms_num", "callee": "float", "is_member_call": false, "indirect": true, "context": "collection", "source_file": "led-simulator/rooms.py", "source_location": "L47"}, {"caller_nid": "$graphify-root$_led_simulator_rooms_num", "callee": "isfinite", "is_member_call": true, "source_file": "led-simulator/rooms.py", "source_location": "L47", "receiver": "math", "_python_receiver_shadowed": false, "_python_call_site": [1937, 1953]}, {"caller_nid": "$graphify-root$_led_simulator_rooms_check_name", "callee": "str", "is_member_call": false, "indirect": true, "context": "argument", "source_file": "led-simulator/rooms.py", "source_location": "L55"}, {"caller_nid": "$graphify-root$_led_simulator_rooms_check_name", "callee": "match", "is_member_call": true, "source_file": "led-simulator/rooms.py", "source_location": "L55", "receiver": "NAME_RE", "_python_receiver_shadowed": true, "_python_call_site": [2195, 2214]}, {"caller_nid": "$graphify-root$_led_simulator_rooms_validate_room", "callee": "dict", "is_member_call": false, "indirect": true, "context": "argument", "source_file": "led-simulator/rooms.py", "source_location": "L62"}, {"caller_nid": "$graphify-root$_led_simulator_rooms_validate_room", "callee": "get", "is_member_call": true, "source_file": "led-simulator/rooms.py", "source_location": "L64", "receiver": "raw", "_python_receiver_shadowed": true, "_python_call_site": [2512, 2531]}, {"caller_nid": "$graphify-root$_led_simulator_rooms_validate_room", "callee": "get", "is_member_call": true, "source_file": "led-simulator/rooms.py", "source_location": "L65", "receiver": "raw", "_python_receiver_shadowed": true, "_python_call_site": [2569, 2588]}, {"caller_nid": "$graphify-root$_led_simulator_rooms_validate_room", "callee": "get", "is_member_call": true, "source_file": "led-simulator/rooms.py", "source_location": "L66", "receiver": "raw", "_python_receiver_shadowed": true, "_python_call_site": [2623, 2645]}, {"caller_nid": "$graphify-root$_led_simulator_rooms_validate_room", "callee": "dict", "is_member_call": false, "indirect": true, "context": "argument", "source_file": "led-simulator/rooms.py", "source_location": "L67"}, {"caller_nid": "$graphify-root$_led_simulator_rooms_validate_room", "callee": "items", "is_member_call": true, "source_file": "led-simulator/rooms.py", "source_location": "L70", "receiver": "defs_in", "_python_receiver_shadowed": true, "_python_call_site": [2807, 2822]}, {"caller_nid": "$graphify-root$_led_simulator_rooms_validate_room", "callee": "str", "is_member_call": false, "indirect": true, "context": "argument", "source_file": "led-simulator/rooms.py", "source_location": "L71"}, {"caller_nid": "$graphify-root$_led_simulator_rooms_validate_room", "callee": "match", "is_member_call": true, "source_file": "led-simulator/rooms.py", "source_location": "L71", "receiver": "ID_RE", "_python_receiver_shadowed": true, "_python_call_site": [2867, 2883]}, {"caller_nid": "$graphify-root$_led_simulator_rooms_validate_room", "callee": "dict", "is_member_call": false, "indirect": true, "context": "argument", "source_file": "led-simulator/rooms.py", "source_location": "L73"}, {"caller_nid": "$graphify-root$_led_simulator_rooms_validate_room", "callee": "MAX_LEDS", "is_member_call": false, "indirect": true, "context": "argument", "source_file": "led-simulator/rooms.py", "source_location": "L76"}, {"caller_nid": "$graphify-root$_led_simulator_rooms_validate_room", "callee": "get", "is_member_call": true, "source_file": "led-simulator/rooms.py", "source_location": "L76", "receiver": "d", "_python_receiver_shadowed": true, "_python_call_site": [3122, 3135]}, {"caller_nid": "$graphify-root$_led_simulator_rooms_validate_room", "callee": "get", "is_member_call": true, "source_file": "led-simulator/rooms.py", "source_location": "L77", "receiver": "d", "_python_receiver_shadowed": true, "_python_call_site": [3203, 3236]}, {"caller_nid": "$graphify-root$_led_simulator_rooms_validate_room", "callee": "DEFAULT_PITCH_M", "is_member_call": false, "indirect": true, "context": "argument", "source_file": "led-simulator/rooms.py", "source_location": "L77"}, {"caller_nid": "$graphify-root$_led_simulator_rooms_validate_room", "callee": "get", "is_member_call": true, "source_file": "led-simulator/rooms.py", "source_location": "L79", "receiver": "raw", "_python_receiver_shadowed": true, "_python_call_site": [3295, 3314]}, {"caller_nid": "$graphify-root$_led_simulator_rooms_validate_room", "callee": "dict", "is_member_call": false, "indirect": true, "context": "argument", "source_file": "led-simulator/rooms.py", "source_location": "L80"}, {"caller_nid": "$graphify-root$_led_simulator_rooms_validate_room", "callee": "items", "is_member_call": true, "source_file": "led-simulator/rooms.py", "source_location": "L86", "receiver": "fx_in", "_python_receiver_shadowed": true, "_python_call_site": [3582, 3595]}, {"caller_nid": "$graphify-root$_led_simulator_rooms_validate_room", "callee": "str", "is_member_call": false, "indirect": true, "context": "argument", "source_file": "led-simulator/rooms.py", "source_location": "L87"}, {"caller_nid": "$graphify-root$_led_simulator_rooms_validate_room", "callee": "match", "is_member_call": true, "source_file": "led-simulator/rooms.py", "source_location": "L87", "receiver": "ID_RE", "_python_receiver_shadowed": true, "_python_call_site": [3640, 3656]}, {"caller_nid": "$graphify-root$_led_simulator_rooms_validate_room", "callee": "dict", "is_member_call": false, "indirect": true, "context": "argument", "source_file": "led-simulator/rooms.py", "source_location": "L89"}, {"caller_nid": "$graphify-root$_led_simulator_rooms_validate_room", "callee": "get", "is_member_call": true, "source_file": "led-simulator/rooms.py", "source_location": "L91", "receiver": "f", "_python_receiver_shadowed": true, "_python_call_site": [3848, 3860]}, {"caller_nid": "$graphify-root$_led_simulator_rooms_validate_room", "callee": "lower", "is_member_call": true, "source_file": "led-simulator/rooms.py", "source_location": "L94", "receiver": null, "_python_receiver_shadowed": true, "_python_call_site": [3977, 4006]}, {"caller_nid": "$graphify-root$_led_simulator_rooms_validate_room", "callee": "get", "is_member_call": true, "source_file": "led-simulator/rooms.py", "source_location": "L94", "receiver": "f", "_python_receiver_shadowed": true, "_python_call_site": [3981, 3997]}, {"caller_nid": "$graphify-root$_led_simulator_rooms_validate_room", "callee": "match", "is_member_call": true, "source_file": "led-simulator/rooms.py", "source_location": "L95", "receiver": "MAC_RE", "_python_receiver_shadowed": true, "_python_call_site": [4022, 4039]}, {"caller_nid": "$graphify-root$_led_simulator_rooms_validate_room", "callee": "add", "is_member_call": true, "source_file": "led-simulator/rooms.py", "source_location": "L99", "receiver": "macs", "_python_receiver_shadowed": true, "_python_call_site": [4305, 4318]}, {"caller_nid": "$graphify-root$_led_simulator_rooms_validate_room", "callee": "get", "is_member_call": true, "source_file": "led-simulator/rooms.py", "source_location": "L100", "receiver": "f", "_python_receiver_shadowed": true, "_python_call_site": [4339, 4353]}, {"caller_nid": "$graphify-root$_led_simulator_rooms_validate_room", "callee": "get", "is_member_call": true, "source_file": "led-simulator/rooms.py", "source_location": "L105", "receiver": "f", "_python_receiver_shadowed": true, "_python_call_site": [4485, 4498]}, {"caller_nid": "$graphify-root$_led_simulator_rooms_validate_room", "callee": "get", "is_member_call": true, "source_file": "led-simulator/rooms.py", "source_location": "L106", "receiver": "f", "_python_receiver_shadowed": true, "_python_call_site": [4560, 4573]}, {"caller_nid": "$graphify-root$_led_simulator_rooms_validate_room", "callee": "get", "is_member_call": true, "source_file": "led-simulator/rooms.py", "source_location": "L107", "receiver": "f", "_python_receiver_shadowed": true, "_python_call_site": [4649, 4671]}, {"caller_nid": "$graphify-root$_led_simulator_rooms_validate_room", "callee": "get", "is_member_call": true, "source_file": "led-simulator/rooms.py", "source_location": "L109", "receiver": "f", "_python_receiver_shadowed": true, "_python_call_site": [4735, 4748]}, {"caller_nid": "$graphify-root$_led_simulator_rooms_validate_room", "callee": "MAX_LEDS", "is_member_call": false, "indirect": true, "context": "argument", "source_file": "led-simulator/rooms.py", "source_location": "L110"}, {"caller_nid": "$graphify-root$_led_simulator_rooms_validate_room", "callee": "get", "is_member_call": true, "source_file": "led-simulator/rooms.py", "source_location": "L113", "receiver": "raw", "_python_receiver_shadowed": true, "_python_call_site": [4900, 4915]}, {"caller_nid": "$graphify-root$_led_simulator_rooms_validate_room", "callee": "get", "is_member_call": true, "source_file": "led-simulator/rooms.py", "source_location": "L117", "receiver": "raw", "_python_receiver_shadowed": true, "_python_call_site": [5048, 5065]}, {"caller_nid": "$graphify-root$_led_simulator_rooms_wrap", "callee": "fmod", "is_member_call": true, "source_file": "led-simulator/rooms.py", "source_location": "L125", "receiver": "math", "_python_receiver_shadowed": false, "_python_call_site": [5224, 5245]}, {"caller_nid": "$graphify-root$_led_simulator_rooms_fixture_leds", "callee": "get", "is_member_call": true, "source_file": "led-simulator/rooms.py", "source_location": "L134", "receiver": "f", "_python_receiver_shadowed": true, "_python_call_site": [5392, 5405]}, {"caller_nid": "$graphify-root$_led_simulator_rooms_fixture_end", "callee": "radians", "is_member_call": true, "source_file": "led-simulator/rooms.py", "source_location": "L140", "receiver": "math", "_python_receiver_shadowed": false, "_python_call_site": [5646, 5674]}, {"caller_nid": "$graphify-root$_led_simulator_rooms_fixture_end", "callee": "sin", "is_member_call": true, "source_file": "led-simulator/rooms.py", "source_location": "L141", "receiver": "math", "_python_receiver_shadowed": false, "_python_call_site": [5704, 5715]}, {"caller_nid": "$graphify-root$_led_simulator_rooms_fixture_end", "callee": "cos", "is_member_call": true, "source_file": "led-simulator/rooms.py", "source_location": "L141", "receiver": "math", "_python_receiver_shadowed": false, "_python_call_site": [5735, 5746]}, {"caller_nid": "$graphify-root$_led_simulator_rooms_room_strips", "callee": "items", "is_member_call": true, "source_file": "led-simulator/rooms.py", "source_location": "L147", "receiver": null, "_python_receiver_shadowed": true, "_python_call_site": [5927, 5951]}, {"caller_nid": "$graphify-root$_led_simulator_rooms_room_strips", "callee": "append", "is_member_call": true, "source_file": "led-simulator/rooms.py", "source_location": "L149", "receiver": "out", "_python_receiver_shadowed": true, "_python_call_site": [6000, 6354]}, {"caller_nid": "$graphify-root$_led_simulator_rooms_grid_room", "callee": "normalise_layout", "is_member_call": false, "source_file": "led-simulator/rooms.py", "source_location": "L185", "receiver": null, "_python_call_site": [7221, 7245]}, {"caller_nid": "$graphify-root$_led_simulator_rooms_grid_room", "callee": "DEFAULT_PITCH_M", "is_member_call": false, "indirect": true, "context": "assignment", "source_file": "led-simulator/rooms.py", "source_location": "L187"}, {"caller_nid": "$graphify-root$_led_simulator_rooms_grid_room", "callee": "strip_places", "is_member_call": false, "source_file": "led-simulator/rooms.py", "source_location": "L195", "receiver": null, "_python_call_site": [7572, 7589]}, {"caller_nid": "$graphify-root$_led_simulator_rooms_grid_room", "callee": "format", "is_member_call": true, "source_file": "led-simulator/rooms.py", "source_location": "L198", "receiver": "name_fmt", "_python_receiver_shadowed": true, "_python_call_site": [7720, 7806]}, {"caller_nid": "$graphify-root$_led_simulator_rooms_grid_room", "callee": "side_name", "is_member_call": false, "source_file": "led-simulator/rooms.py", "source_location": "L198", "receiver": null, "_python_call_site": [7783, 7805]}, {"caller_nid": "$graphify-root$_led_simulator_rooms_grid_room", "callee": "MAC_PREFIX", "is_member_call": false, "indirect": true, "context": "collection", "source_file": "led-simulator/rooms.py", "source_location": "L202"}, {"caller_nid": "$graphify-root$_led_simulator_rooms_roomstore_init", "callee": "mkdir", "is_member_call": true, "source_file": "led-simulator/rooms.py", "source_location": "L221", "receiver": "folder", "_python_receiver_shadowed": true, "receiver_type": "Path", "_python_call_site": [8520, 8561]}, {"caller_nid": "$graphify-root$_led_simulator_rooms_roomstore_names", "callee": "glob", "is_member_call": true, "source_file": "led-simulator/rooms.py", "source_location": "L227", "receiver": null, "_python_receiver_shadowed": true, "_python_self_attr_type": "Path", "_python_call_site": [8733, 8759]}, {"caller_nid": "$graphify-root$_led_simulator_rooms_roomstore_names", "callee": "match", "is_member_call": true, "source_file": "led-simulator/rooms.py", "source_location": "L227", "receiver": "NAME_RE", "_python_receiver_shadowed": true, "_python_call_site": [8763, 8784]}, {"caller_nid": "$graphify-root$_led_simulator_rooms_roomstore_exists", "callee": "is_file", "is_member_call": true, "source_file": "led-simulator/rooms.py", "source_location": "L230", "receiver": null, "_python_receiver_shadowed": true, "_python_call_site": [8843, 8868]}, {"caller_nid": "$graphify-root$_led_simulator_rooms_roomstore_load", "callee": "loads", "is_member_call": true, "source_file": "led-simulator/rooms.py", "source_location": "L235", "receiver": "json", "_python_receiver_shadowed": false, "_python_call_site": [8968, 9009]}, {"caller_nid": "$graphify-root$_led_simulator_rooms_roomstore_load", "callee": "read_text", "is_member_call": true, "source_file": "led-simulator/rooms.py", "source_location": "L235", "receiver": "p", "_python_receiver_shadowed": true, "_python_receiver_factory": [8921, 8936], "_python_call_site": [8979, 9008]}, {"caller_nid": "$graphify-root$_led_simulator_rooms_roomstore_load", "callee": "e", "is_member_call": false, "indirect": true, "context": "collection", "source_file": "led-simulator/rooms.py", "source_location": "L239"}, {"caller_nid": "$graphify-root$_led_simulator_rooms_roomstore_save", "callee": "with_suffix", "is_member_call": true, "source_file": "led-simulator/rooms.py", "source_location": "L245", "receiver": "p", "_python_receiver_shadowed": true, "_python_receiver_factory": [9369, 9384], "_python_call_site": [9399, 9425]}, {"caller_nid": "$graphify-root$_led_simulator_rooms_roomstore_save", "callee": "write_text", "is_member_call": true, "source_file": "led-simulator/rooms.py", "source_location": "L246", "receiver": "tmp", "_python_receiver_shadowed": true, "_python_receiver_factory": [9399, 9425], "_python_call_site": [9434, 9501]}, {"caller_nid": "$graphify-root$_led_simulator_rooms_roomstore_save", "callee": "dumps", "is_member_call": true, "source_file": "led-simulator/rooms.py", "source_location": "L246", "receiver": "json", "_python_receiver_shadowed": false, "_python_call_site": [9449, 9475]}, {"caller_nid": "$graphify-root$_led_simulator_rooms_roomstore_save", "callee": "replace", "is_member_call": true, "source_file": "led-simulator/rooms.py", "source_location": "L247", "receiver": "tmp", "_python_receiver_shadowed": true, "_python_receiver_factory": [9399, 9425], "_python_call_site": [9510, 9524]}, {"caller_nid": "$graphify-root$_led_simulator_rooms_roomstore_delete", "callee": "unlink", "is_member_call": true, "source_file": "led-simulator/rooms.py", "source_location": "L252", "receiver": null, "_python_receiver_shadowed": true, "_python_call_site": [9612, 9636]}, {"caller_nid": "$graphify-root$_led_simulator_rooms_roomstore_all_macs", "callee": "update", "is_member_call": true, "source_file": "led-simulator/rooms.py", "source_location": "L260", "receiver": "macs", "_python_receiver_shadowed": true, "_python_call_site": [9858, 9922]}, {"caller_nid": "$graphify-root$_led_simulator_rooms_roomstore_all_macs", "callee": "values", "is_member_call": true, "source_file": "led-simulator/rooms.py", "source_location": "L260", "receiver": null, "_python_receiver_shadowed": true, "_python_call_site": [9888, 9921]}, {"caller_nid": "$graphify-root$_led_simulator_rooms_roomstore_next_mac", "callee": "MAC_PREFIX", "is_member_call": false, "indirect": true, "context": "collection", "source_file": "led-simulator/rooms.py", "source_location": "L269"}], "_cached_target_files": ["$graphify-root$/led-simulator/layout.py"]}