From f9836a42656b88ca94f2187b9c791879e97bce30 Mon Sep 17 00:00:00 2001 From: Vitalii Lebedynskyi Date: Tue, 23 Aug 2022 15:03:27 +0300 Subject: [PATCH] Adjustments for chat peak detection --- clipper/analyser.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clipper/analyser.py b/clipper/analyser.py index 469f7d2..1fe12f2 100644 --- a/clipper/analyser.py +++ b/clipper/analyser.py @@ -83,7 +83,7 @@ class ChatAnalyser: start_time = datetime.strptime(x_coordinates[0], "%Y-%m-%d %H:%M") max_value = max(y_coordinates) - trash_hold_value = max_value * 0.75 + trash_hold_value = max_value * 0.7 filtered_values = [x_coordinates[index] for index in peak_indices if y_coordinates[index] > trash_hold_value] with open(peaks_output_file, "w") as stream: for peak in filtered_values: