From eedb27af9deca7521af75d577d4e3d58002715ad Mon Sep 17 00:00:00 2001 From: Ethan Marx <61295922+EthanMarx@users.noreply.github.com> Date: Tue, 26 Nov 2024 12:53:57 -0500 Subject: [PATCH] fix inference rate bug (#319) --- projects/infer/infer/postprocess.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/projects/infer/infer/postprocess.py b/projects/infer/infer/postprocess.py index 5c4bdc0e..386db2e9 100644 --- a/projects/infer/infer/postprocess.py +++ b/projects/infer/infer/postprocess.py @@ -47,8 +47,8 @@ def __init__( self.offset = int(psd_length * inference_sampling_rate) # convert our window lengths to sample units - self.integration_window_size = int( - inference_sampling_rate * integration_window_length + self.integration_window_size = ( + int(inference_sampling_rate * integration_window_length) + 1 ) self.cluster_window_size = int( inference_sampling_rate * cluster_window_length