From 3fe08b9c67726308ae4c7e4404a7a755441cd66f Mon Sep 17 00:00:00 2001 From: Dylan De Faoite Date: Wed, 4 Mar 2026 18:37:11 +0000 Subject: [PATCH] fix(backend): buggy reply_time_by_emotion metric This metric was never stastically significant and held no real value. It also so happened to hold accidental NaN values in the dataframe which broke the frontend. Happy to remove. --- server/analysis/stat_gen.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/server/analysis/stat_gen.py b/server/analysis/stat_gen.py index 458cb6b..a9e9289 100644 --- a/server/analysis/stat_gen.py +++ b/server/analysis/stat_gen.py @@ -96,10 +96,7 @@ class StatGen: "common_three_phrases": self.linguistic_analysis.ngrams(filtered_df, n=3), "average_emotion_by_topic": self.emotional_analysis.avg_emotion_by_topic( filtered_df - ), - "reply_time_by_emotion": self.temporal_analysis.avg_reply_time_per_emotion( - filtered_df - ), + ) } def get_user_analysis(self, df: pd.DataFrame, filters: dict | None = None) -> dict: