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

Function sensing_install_log

webapp_modern.py:1684–1696  ·  view source on GitHub ↗

Return the live install/uninstall log and current service state.

()

Source from the content-addressed store, hash-verified

1682 if total > 1e-6:
1683 centroid = {'x': sum(n['x'] * n['disturbance'] for n in nodes) / total,
1684 'y': sum(n['y'] * n['disturbance'] for n in nodes) / total}
1685 hot_count = sum(1 for n in nodes if n['hot'])
1686 interior = _gf_point_in_polygon(centroid, inset) if centroid else False
1687 corroborated = hot_count >= _GF_MIN_HOT_NODES
1688 energetic = total >= _GF_MIN_TOTAL_DISTURBANCE
1689 inside_perimeter = interior and corroborated and energetic
1690 if not energetic:
1691 reason = 'quiet'
1692 elif not corroborated:
1693 reason = f'edge/outside — only {hot_count} corner(s) disturbed'
1694 elif not interior:
1695 reason = 'disturbance centroid outside perimeter'
1696 else:
1697 reason = 'inside perimeter'
1698 return {'ok': True, 'reason': reason, 'inside_perimeter': inside_perimeter,
1699 'energetic': energetic, 'corroborated': corroborated, 'interior': interior,

Callers

nothing calls this directly

Calls 2

_sensing_unit_stateFunction · 0.85
readMethod · 0.45

Tested by

no test coverage detected