From 02b204c7d40db1ecbe2c20b30d189f322edb32e1 Mon Sep 17 00:00:00 2001 From: wendtalexander Date: Thu, 12 Jan 2023 18:22:32 +0100 Subject: [PATCH] adding comments --- code/chirpdetection.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/code/chirpdetection.py b/code/chirpdetection.py index be0e315..fc2c973 100644 --- a/code/chirpdetection.py +++ b/code/chirpdetection.py @@ -195,6 +195,7 @@ def main(datapath: str) -> None: raise ValueError("Window overlap must be even.") raw_time = np.arange(data.shape[0]) / data.samplerate + # good chirp times for data: 2022-06-02-10_00 t0 = (3 * 60 * 60 + 6 * 60 + 43.5) * data.samplerate dt = 60 * data.samplerate @@ -211,9 +212,9 @@ def main(datapath: str) -> None: stop_index = start_index + window_duration # t0 = 3 * 60 * 60 + 6 * 60 + 43.5 -# dt = 60 -# start_index = t0 * data.samplerate -# stop_index = (t0 + dt) * data.samplerate + # dt = 60 + # start_index = t0 * data.samplerate + # stop_index = (t0 + dt) * data.samplerate fig, axs = plt.subplots( 7,