This repository was archived by the owner on Aug 1, 2026. It is now read-only.
Commit bacf419
error-wtf
FIX: Handle missing n_round column in test_data_validation.py
Problem: KeyError when accessing df['n_round'] with fallback data
Solution: Check if column exists before accessing it
Fixed test_phi_debug_data_values:
- Check if 'n_round' in df.columns before accessing
- Print appropriate warning if column missing (fallback data)
- Prevents KeyError: 'n_round' with perfect_paired_results.csv or real_data_full.csv
This was causing FAILURES in the test output log even though tests had fallback logic.1 parent ae85b79 commit bacf419
1 file changed
Lines changed: 10 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
190 | 190 | | |
191 | 191 | | |
192 | 192 | | |
193 | | - | |
194 | | - | |
195 | | - | |
196 | | - | |
197 | | - | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
198 | 203 | | |
199 | 204 | | |
200 | 205 | | |
| |||
0 commit comments