From 124efa4d70a55a19c40d5442000b232d97ab81eb Mon Sep 17 00:00:00 2001 From: Pouya Rostam Date: Wed, 24 Jan 2024 10:49:36 -0800 Subject: [PATCH] small fixes --- binding/python/test_eagle.py | 4 ++-- binding/python/test_eagle_perf.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/binding/python/test_eagle.py b/binding/python/test_eagle.py index 90b7123..b24d768 100644 --- a/binding/python/test_eagle.py +++ b/binding/python/test_eagle.py @@ -80,7 +80,7 @@ def test_eagle_process(self) -> None: num_frames = len(pcm) // self.eagle.frame_length scores = [] for i in range(num_frames): - score = self.eagle.process(pcm=pcm[i * self.eagle.frame_length : (i + 1) * self.eagle.frame_length]) + score = self.eagle.process(pcm=pcm[i * self.eagle.frame_length: (i + 1) * self.eagle.frame_length]) scores.append(score[0]) self.assertGreater(max(scores), 0.5) @@ -91,7 +91,7 @@ def test_eagle_process_imposter(self) -> None: num_frames = len(pcm) // self.eagle.frame_length scores = [] for i in range(num_frames): - score = self.eagle.process(pcm=pcm[i * self.eagle.frame_length : (i + 1) * self.eagle.frame_length]) + score = self.eagle.process(pcm=pcm[i * self.eagle.frame_length: (i + 1) * self.eagle.frame_length]) scores.append(score[0]) self.assertLess(max(scores), 0.5) diff --git a/binding/python/test_eagle_perf.py b/binding/python/test_eagle_perf.py index b019054..f31be69 100644 --- a/binding/python/test_eagle_perf.py +++ b/binding/python/test_eagle_perf.py @@ -91,7 +91,7 @@ def test_performance_recognizer(self) -> None: for i in range(self.num_test_iterations + 1): for n in range(num_frames): start = perf_counter() - _ = eagle.process(pcm=pcm[n * eagle.frame_length : (n + 1) * eagle.frame_length]) + _ = eagle.process(pcm=pcm[n * eagle.frame_length: (n + 1) * eagle.frame_length]) perf_results.append(perf_counter() - start) eagle.delete()