bug fix - wrong CC plot file name
This commit is contained in:
@@ -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 )
|
||||
|
||||
Reference in New Issue
Block a user