helping functions

This commit is contained in:
Ramona 2018-11-12 17:25:08 +01:00
parent 8f9cf1573c
commit 336b10955f

8
code/utility.py Normal file
View File

@ -0,0 +1,8 @@
import numpy as np
def zero_crossing(eod)
threshold = 0;
shift_eod = np.roll(eod, 1)
eod_times = time[(eod >= threshold) & (shift_eod < threshold)]
return eod_times