changed slurm default and a couple of more changes to plots
This commit is contained in:
@@ -48,9 +48,9 @@ def submit_job( job_file, reservation ):
|
||||
if reservation:
|
||||
print( "using a ra beamtime reservation = {0}".format( reservation ) )
|
||||
logger.info( "using ra reservation to process data = {0}".format( reservation ) )
|
||||
submit_cmd = [ "sbatch", "--reservation={0}".format( reservation ), "--cpus-per-task=32", "--" , job_file ]
|
||||
submit_cmd = [ "sbatch", "-p", "day", "--reservation={0}".format( reservation ), "--cpus-per-task=32", "--" , job_file ]
|
||||
else:
|
||||
submit_cmd = [ "sbatch", "--cpus-per-task=32", "--" , job_file ]
|
||||
submit_cmd = [ "sbatch", "-p", "day", "--cpus-per-task=32", "--" , job_file ]
|
||||
logger.info( "using slurm command = {0}".format( submit_cmd ) )
|
||||
|
||||
try:
|
||||
@@ -214,7 +214,7 @@ def summary_fig( stats_df, cc_tanh, ccstar_tanh, cc_cut, ccstar_cut ):
|
||||
# cc plot
|
||||
color = "tab:red"
|
||||
axs[0,0].set_xlabel( "1/d (1/A)" )
|
||||
axs[0,0].set_ylabel( "CC" )
|
||||
axs[0,0].set_ylabel( "CC", color=color )
|
||||
axs[0,0].set_ylim( 0, 1 )
|
||||
axs[0,0].axhline( y = 0.3, color="black", linestyle = "dashed" )
|
||||
# plot cc
|
||||
@@ -252,11 +252,11 @@ def summary_fig( stats_df, cc_tanh, ccstar_tanh, cc_cut, ccstar_cut ):
|
||||
|
||||
# wilson plot
|
||||
color = "tab:purple"
|
||||
axs[1,1].set_xlabel( "d (A)" )
|
||||
axs[1,1].set_xlabel( "1/d**2 (1/A**2)" )
|
||||
axs[1,1].set_ylabel( "lnI", color=color )
|
||||
axs[1,1].plot( stats_df[ "1_d2" ], stats_df.lnI, color=color )
|
||||
sax4 = axs[1,1].secondary_xaxis( 'top', functions=( dto1_d2, dto1_d2 ) )
|
||||
sax4.set_xlabel('d (A)')
|
||||
sax4.set_xlabel( "d (A)" )
|
||||
axs[1,1].tick_params( axis='y', labelcolor=color )
|
||||
|
||||
# save figure
|
||||
|
||||
Reference in New Issue
Block a user