From e972d6e8bcc8e1e67c20d89b175bd44915e39d67 Mon Sep 17 00:00:00 2001 From: weygoldt <88969563+weygoldt@users.noreply.github.com> Date: Thu, 19 Jan 2023 13:49:23 +0100 Subject: [PATCH] added saving arrays --- code/chirpdetection.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/code/chirpdetection.py b/code/chirpdetection.py index ce1a265..200a6a4 100644 --- a/code/chirpdetection.py +++ b/code/chirpdetection.py @@ -688,6 +688,9 @@ def main(datapath: str, plot: str) -> None: purged_chirps.extend(list(tr_chirps_purged)) purged_chirps_ids.extend(list(np.ones_like(tr_chirps_purged)*tr)) + np.save(datapath + 'chirps.npy', purged_chirps) + np.save(datapath + 'chirps_ids.npy', purged_chirps_ids) + if __name__ == "__main__": datapath = "../data/2022-06-02-10_00/"