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