MCPcopy Create free account
hub / github.com/PierreGode/Ragnar / sensing_uninstall

Function sensing_uninstall

webapp_modern.py:1676–1680  ·  view source on GitHub ↗

Stop and remove the bundled sensing backend.

()

Source from the content-addressed store, hash-verified

1674 if len(nodes) < 3:
1675 return {'ok': False, 'reason': 'need >=3 mapped node corners', 'inside_perimeter': False,
1676 'energetic': False, 'corroborated': False, 'interior': False,
1677 'hot_count': 0, 'total': 0.0, 'mapped': len(nodes)}
1678 hull = _gf_convex_hull(nodes)
1679 inset = _gf_inset(hull, _GF_INSET_FRACTION)
1680 total = sum(n['disturbance'] for n in nodes)
1681 centroid = None
1682 if total > 1e-6:
1683 centroid = {'x': sum(n['x'] * n['disturbance'] for n in nodes) / total,

Callers

nothing calls this directly

Calls 1

startMethod · 0.45

Tested by

no test coverage detected