From d04a82dd08f6ea791aa4baf192f4b367a7690632 Mon Sep 17 00:00:00 2001 From: Sam Pottinger Date: Thu, 11 Jul 2024 17:17:08 -0700 Subject: [PATCH] Stick to only significant for now as readers would not see progression. --- paper/viz/data_struct.py | 4 ++-- paper/viz/render_images.sh | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/paper/viz/data_struct.py b/paper/viz/data_struct.py index d8f41645..13b97e1c 100644 --- a/paper/viz/data_struct.py +++ b/paper/viz/data_struct.py @@ -56,7 +56,7 @@ def combine(self, other): self_weighted_p = self.get_p_value() * self_count other_weighted_p = other.get_p_value() * other_count - weighted_p = (self_weighted_p + other_weighted_p) / (self_count + other_count) + new_p = (self_weighted_p + other_weighted_p) / (self_count + other_count) def combine_probs(a, b): a_not = 1 - a @@ -77,7 +77,7 @@ def combine_probs(a, b): return RiskComparison( new_control_risk, new_experimental_risk, - weighted_p, + new_p, new_count ) diff --git a/paper/viz/render_images.sh b/paper/viz/render_images.sh index 6a242106..9fff819b 100644 --- a/paper/viz/render_images.sh +++ b/paper/viz/render_images.sh @@ -1,4 +1,4 @@ python3 hist_viz.py ../outputs/export_hist.csv 2050 75 ../img/hist.png -python3 results_viz_entry.py ../outputs/export_summary.csv 2050 risk map 0.05 Bonferroni all none jul 75 ../outputs/export_climate.csv ../img/map.png +python3 results_viz_entry.py ../outputs/export_summary.csv 2050 risk map 0.05 Bonferroni significant none jul 75 ../outputs/export_climate.csv ../img/map.png python3 results_viz_entry.py ../outputs/export_summary.csv 2050 risk scatter 0.05 Bonferroni significant chirps jul 75 ../outputs/export_climate.csv ../img/scatter.png python3 std_hist.py ../outputs/export_combined_tasks.csv ../img/std.png