Skip to content

Commit

Permalink
small fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Pouya Rostam committed Jan 24, 2024
1 parent 5af920b commit 124efa4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions binding/python/test_eagle.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion binding/python/test_eagle_perf.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 124efa4

Please sign in to comment.