From 37053f94d511be73e6add5679760c51c9de6c171 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aur=C3=A9lien=20WYNGAARD?= Date: Mon, 26 Feb 2024 18:20:53 +0100 Subject: [PATCH] Memory improvement Don't load in memory. Write over memmap instead --- src/MEArec/generators/recordinggenerator.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/MEArec/generators/recordinggenerator.py b/src/MEArec/generators/recordinggenerator.py index 2c30fdf..aaedc8b 100644 --- a/src/MEArec/generators/recordinggenerator.py +++ b/src/MEArec/generators/recordinggenerator.py @@ -993,7 +993,7 @@ def generate_recordings( if verbose_1: print("Smoothing templates") - templates = templates * window + templates *= window # delete temporary preprocessed templates del templates_rs, templates_pad