Skip to content

fix(cgm4981): return None for missing numeric fields#261

Merged
itsDNNS merged 1 commit intomainfrom
fix/260-cgm4981-none-handling
Mar 20, 2026
Merged

fix(cgm4981): return None for missing numeric fields#261
itsDNNS merged 1 commit intomainfrom
fix/260-cgm4981-none-handling

Conversation

@itsDNNS
Copy link
Owner

@itsDNNS itsDNNS commented Mar 20, 2026

Summary

  • _float() now returns None instead of 0.0 when no number is found in the input
  • Prevents the analyzer from treating blank SNR/power cells as real 0 dB / 0 dBmV readings, which would trigger false critical health assessments
  • Adds 14 unit tests for _float() and _modulation() helpers

Test plan

  • .venv/bin/pytest tests/test_cgm4981_driver.py -v (14 passed)
  • Full suite: 1808 passed

Fixes #260

The analyzer treats None as "metric unavailable" but 0 as a real
reading. Returning 0.0 for blank SNR/power cells would cause false
critical health assessments on partially populated OFDM/OFDMA rows.

Also adds unit tests for _float() and _modulation() helpers.

Fixes #260
@itsDNNS itsDNNS merged commit 1517c1b into main Mar 20, 2026
2 checks passed
@itsDNNS itsDNNS deleted the fix/260-cgm4981-none-handling branch March 20, 2026 08:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

cgm4981: return None instead of 0.0 for missing numeric fields

1 participant