Skip to content
Snippets Groups Projects
Commit 92924877 authored by Giulio Gaio's avatar Giulio Gaio
Browse files

Fixed an if

parent fc74931d
No related branches found
No related tags found
No related merge requests found
......@@ -812,7 +812,7 @@ class DeviceObj:
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 (check)
if (self.corr[t_idx] == 0) or np.isnan(self.corr[t_idx]) or np.isinf(self.corr[t_idx])
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
self.old_lp_filter_corr[t_idx] = self.lp_filter_corr[t_idx];
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment