{"nodes": [{"id": "$graphify-root$_led_driver_src_rig_py", "label": "rig.py", "file_type": "code", "source_file": "led-driver/src/rig.py", "source_location": "L1"}, {"id": "$graphify-root$_led_driver_src_rig_geom_3fb2ec", "label": "Geom", "file_type": "code", "source_file": "led-driver/src/rig.py", "source_location": "L13", "_callable": true, "_callable_class": true}, {"id": "$graphify-root$_led_driver_src_rig_geom_3fb2ec_init", "label": ".__init__()", "file_type": "code", "source_file": "led-driver/src/rig.py", "source_location": "L14", "_callable": true}, {"id": "$graphify-root$_led_driver_src_rig_geom_776b1b", "label": "geom()", "file_type": "code", "source_file": "led-driver/src/rig.py", "source_location": "L31", "_callable": true}, {"id": "$graphify-root$_led_driver_src_rig_along", "label": "along()", "file_type": "code", "source_file": "led-driver/src/rig.py", "source_location": "L39", "_callable": true}, {"id": "$graphify-root$_led_driver_src_rig_gain", "label": "gain()", "file_type": "code", "source_file": "led-driver/src/rig.py", "source_location": "L45", "_callable": true}, {"id": "$graphify-root$_led_driver_src_rig_lut", "label": "Lut", "file_type": "code", "source_file": "led-driver/src/rig.py", "source_location": "L54", "_callable": true, "_callable_class": true}, {"id": "$graphify-root$_led_driver_src_rig_lut_init", "label": ".__init__()", "file_type": "code", "source_file": "led-driver/src/rig.py", "source_location": "L61", "_callable": true}, {"id": "$graphify-root$_led_driver_src_rig_lut_get", "label": ".get()", "file_type": "code", "source_file": "led-driver/src/rig.py", "source_location": "L65", "_callable": true}, {"id": "$graphify-root$_led_driver_src_rig_shade_index", "label": "shade_index()", "file_type": "code", "source_file": "led-driver/src/rig.py", "source_location": "L91", "_callable": true}, {"id": "$graphify-root$_led_driver_src_rig_blit", "label": "blit()", "file_type": "code", "source_file": "led-driver/src/rig.py", "source_location": "L96", "_callable": true}, {"id": "$graphify-root$_led_driver_src_rig_grad", "label": "_grad()", "file_type": "code", "source_file": "led-driver/src/rig.py", "source_location": "L109", "_callable": true}, {"id": "$graphify-root$_led_driver_src_rig_rationale_1", "label": "Where each LED sits in the rig, for patterns that span every bar (sweep,\u2026", "file_type": "rationale", "source_file": "led-driver/src/rig.py", "source_location": "L1"}, {"id": "$graphify-root$_led_driver_src_rig_rationale_40", "label": "Position of LED i along a direction across the rig, 0..1", "file_type": "rationale", "source_file": "led-driver/src/rig.py", "source_location": "L40"}, {"id": "$graphify-root$_led_driver_src_rig_rationale_46", "label": "Brightness scale 0..1 (preset, global and ceiling), as apply_brightness", "file_type": "rationale", "source_file": "led-driver/src/rig.py", "source_location": "L46"}, {"id": "$graphify-root$_led_driver_src_rig_rationale_55", "label": "Pixel bytes, in the strip's byte order, for every (colour along the gradient,\u2026", "file_type": "rationale", "source_file": "led-driver/src/rig.py", "source_location": "L55"}, {"id": "$graphify-root$_led_driver_src_rig_rationale_92", "label": "Gradient positions (0..1 per LED) as table entries", "file_type": "rationale", "source_file": "led-driver/src/rig.py", "source_location": "L92"}, {"id": "$graphify-root$_led_driver_src_rig_rationale_97", "label": "Copy each LED's table entry into the strip and show it", "file_type": "rationale", "source_file": "led-driver/src/rig.py", "source_location": "L97"}], "edges": [{"source": "$graphify-root$_led_driver_src_rig_py", "target": "math", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "led-driver/src/rig.py", "source_location": "L7", "weight": 1.0, "_python_import_module": "math", "_python_import_bindings": [["math", "math"]], "_python_import_module_binding": true}, {"source": "$graphify-root$_led_driver_src_rig_py", "target": "array", "relation": "imports_from", "context": "import", "confidence": "EXTRACTED", "source_file": "led-driver/src/rig.py", "source_location": "L8", "weight": 1.0, "_python_import_module": "array", "_python_import_bindings": [["array", "array"]]}, {"source": "$graphify-root$_led_driver_src_rig_py", "target": "$graphify-root$_led_driver_src_rig_geom_3fb2ec", "relation": "contains", "confidence": "EXTRACTED", "source_file": "led-driver/src/rig.py", "source_location": "L13", "weight": 1.0}, {"source": "$graphify-root$_led_driver_src_rig_geom_3fb2ec", "target": "$graphify-root$_led_driver_src_rig_geom_3fb2ec_init", "relation": "method", "confidence": "EXTRACTED", "source_file": "led-driver/src/rig.py", "source_location": "L14", "weight": 1.0}, {"source": "$graphify-root$_led_driver_src_rig_py", "target": "$graphify-root$_led_driver_src_rig_geom_776b1b", "relation": "contains", "confidence": "EXTRACTED", "source_file": "led-driver/src/rig.py", "source_location": "L31", "weight": 1.0}, {"source": "$graphify-root$_led_driver_src_rig_py", "target": "$graphify-root$_led_driver_src_rig_along", "relation": "contains", "confidence": "EXTRACTED", "source_file": "led-driver/src/rig.py", "source_location": "L39", "weight": 1.0}, {"source": "$graphify-root$_led_driver_src_rig_py", "target": "$graphify-root$_led_driver_src_rig_gain", "relation": "contains", "confidence": "EXTRACTED", "source_file": "led-driver/src/rig.py", "source_location": "L45", "weight": 1.0}, {"source": "$graphify-root$_led_driver_src_rig_py", "target": "$graphify-root$_led_driver_src_rig_lut", "relation": "contains", "confidence": "EXTRACTED", "source_file": "led-driver/src/rig.py", "source_location": "L54", "weight": 1.0}, {"source": "$graphify-root$_led_driver_src_rig_lut", "target": "$graphify-root$_led_driver_src_rig_lut_init", "relation": "method", "confidence": "EXTRACTED", "source_file": "led-driver/src/rig.py", "source_location": "L61", "weight": 1.0}, {"source": "$graphify-root$_led_driver_src_rig_lut", "target": "$graphify-root$_led_driver_src_rig_lut_get", "relation": "method", "confidence": "EXTRACTED", "source_file": "led-driver/src/rig.py", "source_location": "L65", "weight": 1.0}, {"source": "$graphify-root$_led_driver_src_rig_py", "target": "$graphify-root$_led_driver_src_rig_shade_index", "relation": "contains", "confidence": "EXTRACTED", "source_file": "led-driver/src/rig.py", "source_location": "L91", "weight": 1.0}, {"source": "$graphify-root$_led_driver_src_rig_py", "target": "$graphify-root$_led_driver_src_rig_blit", "relation": "contains", "confidence": "EXTRACTED", "source_file": "led-driver/src/rig.py", "source_location": "L96", "weight": 1.0}, {"source": "$graphify-root$_led_driver_src_rig_py", "target": "$graphify-root$_led_driver_src_rig_grad", "relation": "contains", "confidence": "EXTRACTED", "source_file": "led-driver/src/rig.py", "source_location": "L109", "weight": 1.0}, {"source": "$graphify-root$_led_driver_src_rig_geom_776b1b", "target": "$graphify-root$_led_driver_src_rig_geom_3fb2ec", "relation": "calls", "context": "call", "confidence": "EXTRACTED", "source_file": "led-driver/src/rig.py", "source_location": "L34", "weight": 1.0}, {"source": "$graphify-root$_led_driver_src_rig_lut_get", "target": "$graphify-root$_led_driver_src_rig_grad", "relation": "calls", "context": "call", "confidence": "EXTRACTED", "source_file": "led-driver/src/rig.py", "source_location": "L76", "weight": 1.0}, {"source": "$graphify-root$_led_driver_src_rig_rationale_1", "target": "$graphify-root$_led_driver_src_rig_py", "relation": "rationale_for", "confidence": "EXTRACTED", "source_file": "led-driver/src/rig.py", "source_location": "L1", "weight": 1.0}, {"source": "$graphify-root$_led_driver_src_rig_rationale_40", "target": "$graphify-root$_led_driver_src_rig_along", "relation": "rationale_for", "confidence": "EXTRACTED", "source_file": "led-driver/src/rig.py", "source_location": "L40", "weight": 1.0}, {"source": "$graphify-root$_led_driver_src_rig_rationale_46", "target": "$graphify-root$_led_driver_src_rig_gain", "relation": "rationale_for", "confidence": "EXTRACTED", "source_file": "led-driver/src/rig.py", "source_location": "L46", "weight": 1.0}, {"source": "$graphify-root$_led_driver_src_rig_rationale_55", "target": "$graphify-root$_led_driver_src_rig_lut", "relation": "rationale_for", "confidence": "EXTRACTED", "source_file": "led-driver/src/rig.py", "source_location": "L55", "weight": 1.0}, {"source": "$graphify-root$_led_driver_src_rig_rationale_92", "target": "$graphify-root$_led_driver_src_rig_shade_index", "relation": "rationale_for", "confidence": "EXTRACTED", "source_file": "led-driver/src/rig.py", "source_location": "L92", "weight": 1.0}, {"source": "$graphify-root$_led_driver_src_rig_rationale_97", "target": "$graphify-root$_led_driver_src_rig_blit", "relation": "rationale_for", "confidence": "EXTRACTED", "source_file": "led-driver/src/rig.py", "source_location": "L97", "weight": 1.0}], "raw_calls": [{"caller_nid": "$graphify-root$_led_driver_src_rig_geom_3fb2ec_init", "callee": "array", "is_member_call": false, "source_file": "led-driver/src/rig.py", "source_location": "L17", "receiver": null, "_python_call_site": [613, 634]}, {"caller_nid": "$graphify-root$_led_driver_src_rig_geom_3fb2ec_init", "callee": "array", "is_member_call": false, "source_file": "led-driver/src/rig.py", "source_location": "L18", "receiver": null, "_python_call_site": [652, 673]}, {"caller_nid": "$graphify-root$_led_driver_src_rig_geom_3fb2ec_init", "callee": "array", "is_member_call": false, "source_file": "led-driver/src/rig.py", "source_location": "L19", "receiver": null, "_python_call_site": [691, 712]}, {"caller_nid": "$graphify-root$_led_driver_src_rig_geom_3fb2ec_init", "callee": "array", "is_member_call": false, "source_file": "led-driver/src/rig.py", "source_location": "L20", "receiver": null, "_python_call_site": [764, 785]}, {"caller_nid": "$graphify-root$_led_driver_src_rig_geom_3fb2ec_init", "callee": "sqrt", "is_member_call": true, "source_file": "led-driver/src/rig.py", "source_location": "L27", "receiver": "math", "_python_receiver_shadowed": false, "_python_call_site": [1068, 1092]}, {"caller_nid": "$graphify-root$_led_driver_src_rig_geom_3fb2ec_init", "callee": "atan2", "is_member_call": true, "source_file": "led-driver/src/rig.py", "source_location": "L28", "receiver": "math", "_python_receiver_shadowed": false, "_python_call_site": [1119, 1135]}, {"caller_nid": "$graphify-root$_led_driver_src_rig_along", "callee": "cos", "is_member_call": true, "source_file": "led-driver/src/rig.py", "source_location": "L42", "receiver": "math", "_python_receiver_shadowed": false, "_python_call_site": [1475, 1488]}, {"caller_nid": "$graphify-root$_led_driver_src_rig_along", "callee": "sin", "is_member_call": true, "source_file": "led-driver/src/rig.py", "source_location": "L42", "receiver": "math", "_python_receiver_shadowed": false, "_python_call_site": [1500, 1513]}, {"caller_nid": "$graphify-root$_led_driver_src_rig_lut_init", "callee": "bytearray", "is_member_call": false, "source_file": "led-driver/src/rig.py", "source_location": "L63", "receiver": null, "_python_call_site": [2367, 2379]}, {"caller_nid": "$graphify-root$_led_driver_src_rig_lut_get", "callee": "apply_brightness", "is_member_call": true, "source_file": "led-driver/src/rig.py", "source_location": "L66", "receiver": "driver", "_python_receiver_shadowed": true, "_python_call_site": [2452, 2515]}, {"caller_nid": "$graphify-root$_led_driver_src_rig_lut_get", "callee": "background_or", "is_member_call": true, "source_file": "led-driver/src/rig.py", "source_location": "L66", "receiver": "preset", "_python_receiver_shadowed": true, "_python_call_site": [2476, 2504]}, {"caller_nid": "$graphify-root$_led_driver_src_rig_lut_get", "callee": "ORDER", "is_member_call": false, "indirect": true, "context": "getattr", "source_file": "led-driver/src/rig.py", "source_location": "L70"}, {"caller_nid": "$graphify-root$_led_driver_src_rig_lut_get", "callee": "bytearray", "is_member_call": false, "source_file": "led-driver/src/rig.py", "source_location": "L72", "receiver": null, "_python_call_site": [2853, 2883]}, {"caller_nid": "$graphify-root$_led_driver_src_rig_lut_get", "callee": "LEVELS", "is_member_call": false, "indirect": true, "context": "argument", "source_file": "led-driver/src/rig.py", "source_location": "L81"}, {"caller_nid": "$graphify-root$_led_driver_src_rig_blit", "callee": "write", "is_member_call": true, "source_file": "led-driver/src/rig.py", "source_location": "L106", "receiver": null, "_python_receiver_shadowed": true, "_python_call_site": [4008, 4024]}]}