From 2f16fe216225876bb8b1f8c332578145505e46f4 Mon Sep 17 00:00:00 2001 From: Hykilpikonna Date: Thu, 25 Nov 2021 18:48:59 -0500 Subject: [PATCH] [+] Docstring --- src/process/twitter_visualization.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/process/twitter_visualization.py b/src/process/twitter_visualization.py index 40d5532..8149911 100644 --- a/src/process/twitter_visualization.py +++ b/src/process/twitter_visualization.py @@ -42,6 +42,7 @@ class Sample: self.name = name self.users = users self.calculate_sample_data() + self.calculate_change_data() def calculate_sample_data(self) -> None: """ @@ -118,9 +119,14 @@ class Sample: self.tweets = all_tweets debug('- Done.') - def calculate_change(self) -> None: + def calculate_change_data(self) -> None: """ + This function calculates self.date_freqs and self.date_pops, which are lists that stores the + frequencies and popularity ratios on each date since the first tweet. This calculation + ignores users, but instead combines the tweets of the entire sample in the calculation. + More details about the calculations can be found in the report, or report_document.md + Preconditions: - len(self.tweets) > 0 - self.tweets != None