From fc74931dc4dd87fcccddea9fd14285b182de3aa6 Mon Sep 17 00:00:00 2001 From: Giulio Gaio <giulio.gaio@elettra.eu> Date: Tue, 1 Feb 2022 09:09:31 +0100 Subject: [PATCH] Retrigger installation --- src/CalcStats.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/CalcStats.py b/src/CalcStats.py index 05c4289..9e0f069 100755 --- a/src/CalcStats.py +++ b/src/CalcStats.py @@ -811,7 +811,7 @@ class DeviceObj: # calculate the correlation, numpy indexes start from 1 self.corr[t_idx] = np.corrcoef(sensor_array,target_array)[0,1] # low pass filter correlation - # if data is 0/inf/NaN keep the previous value in order to avoid corrupting the filtered value + # if data is 0/inf/NaN keep the previous value in order to avoid corrupting the filtered value (check) if (self.corr[t_idx] == 0) or np.isnan(self.corr[t_idx]) or np.isinf(self.corr[t_idx]) self.lp_filter_corr[t_idx] = self.old_lp_filter_corr[t_idx] else -- GitLab