Skip to content

Add SNR estimator spot tests for RADE V1 AWGN channel#67

Merged
drowe67 merged 2 commits intomainfrom
dr-snr-test
Mar 14, 2026
Merged

Add SNR estimator spot tests for RADE V1 AWGN channel#67
drowe67 merged 2 commits intomainfrom
dr-snr-test

Conversation

@drowe67
Copy link
Copy Markdown
Owner

@drowe67 drowe67 commented Mar 13, 2026

  • test/check_snr.py: reads radae_rxe.py verbose output, averages SNRdB over last N sync frames, checks against expected SNR3k within tolerance
  • CMakeLists.txt: radae_snr_est_high (EbNodB 10, SNR3k 8.24 dB ±2 dB) and radae_snr_est_low (EbNodB 5, SNR3k 3.24 dB ±2 dB)

- test/check_snr.py: reads radae_rxe.py verbose output, averages SNRdB
  over last N sync frames, checks against expected SNR3k within tolerance
- CMakeLists.txt: radae_snr_est_high (EbNodB 10, SNR3k 8.24 dB ±2 dB)
  and radae_snr_est_low (EbNodB 5, SNR3k 3.24 dB ±2 dB)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@drowe67
Copy link
Copy Markdown
Owner Author

drowe67 commented Mar 13, 2026

@tmiw - how about this approach to testing the SNR estimator? If OK we could merge with #66, and then add a version for the C port. Pls let me know what you think.

python3 loss.py features_in.f32 features_rx_out.f32 --loss 0.3 --acq_time_test 1.0 --clip_end 300")
set_tests_properties(radae_rx_awgn PROPERTIES PASS_REGULAR_EXPRESSION "PASS")

# SNR estimator spot tests: check radae_rxe.py reports SNR3k within 3 dB of inference.sh target
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does tolerance need to be set lower? The SNR values on the C port seemed to be higher but not necessarily high enough to meet this threshold.

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

3dB was required to pass the test on GitHub, see ee70232 for the Python version.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fair enough. We can see how this works once we port this test to the C version. 👍

@drowe67 drowe67 merged commit 77eaa11 into main Mar 14, 2026
2 checks passed
@drowe67
Copy link
Copy Markdown
Owner Author

drowe67 commented Mar 14, 2026

@tmiw - Claude and I ended up tweaking these tests in #66 00f8ae5.

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.

2 participants