kopia lustrzana https://github.com/corrscope/corrscope
Reorganize trigger: abs_max()
rodzic
0b62dbeacc
commit
cbc2c383ed
|
@ -23,10 +23,6 @@ if TYPE_CHECKING:
|
|||
from corrscope.renderer import RendererFrontend
|
||||
|
||||
|
||||
def abs_max(data, offset=0):
|
||||
return np.amax(np.abs(data)) + offset
|
||||
|
||||
|
||||
# Abstract classes
|
||||
|
||||
|
||||
|
@ -696,6 +692,10 @@ def sign_times_peak(data: np.ndarray) -> np.ndarray:
|
|||
return sign_data
|
||||
|
||||
|
||||
def abs_max(data, offset=0):
|
||||
return np.amax(np.abs(data)) + offset
|
||||
|
||||
|
||||
#### Post-processing triggers
|
||||
# ZeroCrossingTrigger
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue