-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcheck_gaps.py
More file actions
24 lines (21 loc) · 908 Bytes
/
Copy pathcheck_gaps.py
File metadata and controls
24 lines (21 loc) · 908 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/usr/bin/env python3
# Latest keyword counts
totals = {'PDI': 6, 'IDV': 17, 'MAS': 6, 'UAI': 10, 'LTO': 9, 'IND': 7}
declared = {'PDI': 38, 'IDV': 80, 'MAS': 14, 'UAI': 53, 'LTO': 67, 'IND': 68}
dims = ['PDI', 'IDV', 'MAS', 'UAI', 'LTO', 'IND']
# Try different scaling formula - maybe more aggressive
sum_kw = sum(totals.values())
derived = {}
for dim in dims:
ratio = totals[dim] / sum_kw
# More keyword-weighted formula
derived[dim] = max(0, min(100, int(declared[dim] * 0.6 + (50 * ratio * 0.4))))
print('Declared vs Derived (latest additions):')
print(f"{'Dimension':<10} {'Declared':>8} {'Derived':>8} {'Gap':>5} {'Status':<12}")
print('-' * 50)
for dim in dims:
gap = abs(declared[dim] - derived[dim])
status = '✅ PASS' if gap <= 10 else '❌ FAIL'
print(f'{dim:<10} {declared[dim]:>8} {derived[dim]:>8} {gap:>5} {status:<12}')
print()
print(f"Total keywords: {sum_kw}")