Showing the changes to python (1 of 1 file). Show all
Unified · Split
| @@ -34,7 +34,7 @@ class taskonset(task): · 33 unmodified lines | ||
| 34 | 34 | if val > 0: self.ovalist.append(val) |
| 35 | 35 | else: self.ovalist.append(0) |
| 36 | 36 | self.ovalist.pop(0) |
| 37 | − if (isonset == 1): | |
| 37 | + if (isonset > 0.): | |
| 38 | 38 | if self.params.localmin: |
| 39 | 39 | # find local minima before peak |
| 40 | 40 | i=len(self.ovalist)-1 |