From ce1e46611d36440247b7a2752a48b3efea42a56e Mon Sep 17 00:00:00 2001 From: Beale John Henry Date: Thu, 28 Sep 2023 12:52:11 +0200 Subject: [PATCH] bug fix - wrong CC plot file name --- reduction_tools/push_res_scan.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/reduction_tools/push_res_scan.py b/reduction_tools/push_res_scan.py index daff621..dc467d7 100644 --- a/reduction_tools/push_res_scan.py +++ b/reduction_tools/push_res_scan.py @@ -207,7 +207,7 @@ def get_metric( d2_series, cc_series, cut_off ): return cc_stat -def summary_cc_fig( stats_df, plot_pwd ): +def summary_cc_fig( stats_df ): # plot results cc_fig, (ax1, ax2) = plt.subplots(1, 2) @@ -229,7 +229,7 @@ def summary_cc_fig( stats_df, plot_pwd ): ax2.plot(stats_df[ "1_d" ], stats_df.ccstar, color=color) ax2.tick_params(axis='y', labelcolor=color) - plot_file = "{0}/final_cc.png".format( plot_pwd ) + plot_file = "final_cc.png" plt.savefig( plot_file ) def cc_cut_fig( analysis_df, cc_push_res, ccstar_push_res, plot_pwd ): @@ -359,8 +359,7 @@ def main( cwd, name, stream, pointgroup, model, iterations, cell, bins, part_h_r print( "resolution at CC* at 0.7 = {0}".format( ccstar_cut ) ) # show plots - plot_pwd = "CC_CC*_plots.png" - summary_cc_fig( stats_df, plot_pwd ) + summary_cc_fig( stats_df ) # move back to top dir os.chdir( cwd )