kopia lustrzana https://github.com/corrscope/corrscope
Fix ZeroCrossingTrigger slowdown by removing `idx in range(...)`
rodzic
709661dd93
commit
e23145e193
|
@ -197,7 +197,7 @@ class ZeroCrossingTrigger(Trigger):
|
|||
def get_trigger(self, index: int):
|
||||
scan_nsamp = self._scan_nsamp
|
||||
|
||||
if index not in range(len(self._wave.data)):
|
||||
if not 0 <= index < self._wave.nsamp:
|
||||
return index
|
||||
|
||||
if self._wave[index] < 0:
|
||||
|
|
Ładowanie…
Reference in New Issue