From ff5a81b4902792bfaee25a7c26d04ec52e019a1a Mon Sep 17 00:00:00 2001 From: efish Date: Mon, 12 Nov 2018 17:33:44 +0100 Subject: [PATCH] fix_syntax --- code/utility.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/code/utility.py b/code/utility.py index 6179a7b..5a55632 100644 --- a/code/utility.py +++ b/code/utility.py @@ -1,8 +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 +def zero_crossing(eod,time): + threshold = 0; + shift_eod = np.roll(eod, 1) + eod_times = time[(eod >= threshold) & (shift_eod < threshold)] + return eod_times