From 3517590b7ce1be586c6ed02fdf3f652a7ccae94c Mon Sep 17 00:00:00 2001 From: Lanqing Yuan Date: Tue, 14 May 2024 07:06:34 -0500 Subject: [PATCH] return bias dict --- saltax/match/utils.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/saltax/match/utils.py b/saltax/match/utils.py index a474841..be22ca9 100644 --- a/saltax/match/utils.py +++ b/saltax/match/utils.py @@ -983,6 +983,18 @@ def show_area_bias( plt.title(title) plt.show() + result_dict = {} + result_dict['coord'] = coord + result_dict['s1s2'] = s1s2 + result_dict['bins_mid'] = bins_mid + result_dict['bias_med'] = bias_med + result_dict['bias_1sig_u'] = bias_1sig_u + result_dict['bias_1sig_l'] = bias_1sig_l + result_dict['bias_2sig_u'] = bias_2sig_u + result_dict['bias_2sig_l'] = bias_2sig_l + + return result_dict + def show_eff2d( events,