mirror of
https://github.com/db9979/uconsole_asw_game.git
synced 2026-12-05 12:24:25 +01:00
Receiver test: expect the own blade-rate line from the shaft model
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LAa6fnf7M4fKm56aJXHvKS
This commit is contained in:
1 file changed
+3
-1
@@ -5,6 +5,7 @@ import pytest
|
||||
|
||||
from src.audio.receiver import AcousticReceiver, smooth_limit
|
||||
from src.core import config
|
||||
from src.physics import ship_dynamics
|
||||
from src.data.catalog import CATALOG
|
||||
|
||||
|
||||
@@ -189,7 +190,8 @@ def test_noise_only_not_identified_even_at_high_noise_and_speed():
|
||||
for i in range(80):
|
||||
receiver.update([], 0, 30, 1, 9, 30)
|
||||
assert receiver.demon_analysis is None
|
||||
assert any(abs(freq - 67) <= .5 for freq, _ in receiver.peaks)
|
||||
shaft_hz = ship_dynamics.own_blade_line_hz(30)
|
||||
assert any(abs(freq - shaft_hz) <= .5 for freq, _ in receiver.peaks)
|
||||
assert run([]).peaks == []
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user