Adjustments for chat peak detection

This commit is contained in:
Vitalii Lebedynskyi
2022-08-23 15:03:27 +03:00
parent 5cec84c26c
commit f9836a4265

View File

@@ -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: