Fix coverage: add /api/coverage route, remove stray gather code from loadCoverage

This commit is contained in:
Floppyrj45
2026-02-19 14:53:10 +01:00
parent 61b25ab734
commit bbd6a22b57
80 changed files with 27884 additions and 1 deletions

22
scripts/check_positions.py Executable file
View File

@@ -0,0 +1,22 @@
import json
data = json.load(open(r'F:\seismic_webapp\data\index.json'))
nodes_with_data = [n for n in data['nodes'].values() if n.get('dates') and len(n['dates']) > 0]
print(f'Nodes avec donnees: {len(nodes_with_data)}')
print('\n--- Nodes avec donnees et leurs positions ---')
for n in nodes_with_data[:10]:
pos = n.get('position')
has_pos = pos and pos.get('easting') and pos.get('northing')
print(f"Node {n['id']}: hasPos={has_pos}, pos={pos}")
print('\n--- Nodes avec donnees SANS position valide ---')
no_pos_count = 0
for n in nodes_with_data:
pos = n.get('position')
if not pos or not pos.get('easting') or not pos.get('northing'):
print(f"Node {n['id']}: pos={pos}")
no_pos_count += 1
print(f'\nTotal nodes sans position valide: {no_pos_count}')