Merge branch 'master' of https://whale.am28.uni-tuebingen.de/git/jgrewe/gp_neurobio
This commit is contained in:
commit
c3c95e8c98
@ -1,8 +1,8 @@
|
|||||||
import numpy as np
|
import numpy as np
|
||||||
|
|
||||||
|
|
||||||
def zero_crossing(eod)
|
def zero_crossing(eod,time):
|
||||||
threshold = 0;
|
threshold = 0;
|
||||||
shift_eod = np.roll(eod, 1)
|
shift_eod = np.roll(eod, 1)
|
||||||
eod_times = time[(eod >= threshold) & (shift_eod < threshold)]
|
eod_times = time[(eod >= threshold) & (shift_eod < threshold)]
|
||||||
return eod_times
|
return eod_times
|
||||||
|
Loading…
Reference in New Issue
Block a user