Skip to content

Commit

Permalink
Automated Code Change
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 664890040
  • Loading branch information
hawkinsp authored and copybara-github committed Aug 19, 2024
1 parent 1047622 commit eb13cc1
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions python/np/carfac_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -212,13 +212,12 @@ def test_car_freq_response(self):
gain = round(amplitude, 2)
q = round(cf / bw, 1)
cf = round(cf)
bw = round(bw, 1)
print(f'{channel}: cf is {cf} Hz, peak gain is '
f'{gain} dB, 3 dB bandwidth is {bw} Hz '
f'{gain} dB, 3 dB bandwidth is {round(bw, 1)} Hz '
f'(Q = {q})')
self.assertAlmostEqual(cf, correct_cf)
self.assertAlmostEqual(gain, correct_gain)
self.assertAlmostEqual(bw, correct_bw)
self.assertAlmostEqual(amplitude, correct_gain, delta=0.01)
self.assertAlmostEqual(bw, correct_bw, delta=0.1)
self.assertAlmostEqual(q, correct_q)

def run_ihc(self, test_freq=300, one_cap=True):
Expand Down

0 comments on commit eb13cc1

Please sign in to comment.