diff --git a/src/CalcStats.py b/src/CalcStats.py index 05c42898b0a0a7f93b881a85300d7ea966667413..9e0f0693093b96ae88b57a1c7e23498bcce1a541 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