From 23a23e077f13aedf745a1c03d6bee882b6a085b0 Mon Sep 17 00:00:00 2001 From: LuisSanchez25 Date: Sun, 29 Dec 2024 23:45:32 -0600 Subject: [PATCH] fix bug --- sciSOM/SOM_recall/strax_functions.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sciSOM/SOM_recall/strax_functions.py b/sciSOM/SOM_recall/strax_functions.py index 55fea30..604bae8 100644 --- a/sciSOM/SOM_recall/strax_functions.py +++ b/sciSOM/SOM_recall/strax_functions.py @@ -176,8 +176,8 @@ def data_to_log_decile_log_area_aft_generate(peaklet_data): np.reshape(peaklet_log_area, (len(peaklet_log_area), 1)) / np.max(peaklet_log_area), np.reshape(peaklet_aft, (len(peaklet_log_area), 1))), axis=1) - norm_factors = np.concatenate((np.max(decile_log, axis = 0), np.max(np.log10(peaklet_data['area'])).reshape(1))) - norm_factors = np.concatenate((norm_factors, np.abs(np.min(peaklet_data['area'])).reshape(1))) + norm_factors = np.concatenate((np.max(decile_log, axis = 0), np.max(peaklet_log_area).reshape(1))) + norm_factors = np.concatenate((norm_factors, np.abs(min_area).reshape(1))) return deciles_area_aft, norm_factors