Skip to content

Commit 069a530

Browse files
committed
fix: actually use the output suffix
1 parent 8ae5aab commit 069a530

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

qa-physics/charge_analysis/analyze.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ def main():
3232
''')
3333
exit(2)
3434
hipo_file = sys.argv[1]
35+
output_suffix = sys.argv[2]
3536

3637
hipo_prefix = os.getenv('HIPO')
3738
if hipo_prefix == None:
@@ -108,7 +109,7 @@ def main():
108109
ax.tick_params(axis='both', labelsize=9)
109110

110111
fig1.tight_layout(rect=[0, 0.03, 1, 0.95])
111-
fig1.savefig(f'fcup_vs_timestamp_{run_number}.png', bbox_inches='tight', dpi=300)
112+
fig1.savefig(f'fcup_vs_timestamp_{run_number}_{output_suffix}.png', bbox_inches='tight', dpi=300)
112113
plt.close(fig1)
113114
# ---------- Compute Chunked FCUP Gated with neighbor handling ----------
114115
chunk_size = 2000
@@ -274,7 +275,7 @@ def main():
274275
ax_ltdist.tick_params(axis='both', labelsize=10)
275276

276277
fig2.tight_layout(rect=[0, 0.03, 1, 0.95])
277-
fig2.savefig(f'chunked_fcupgated_comparison_{run_number}.png', bbox_inches='tight', dpi=300)
278+
fig2.savefig(f'chunked_fcupgated_comparison_{run_number}_{output_suffix}.png', bbox_inches='tight', dpi=300)
278279
plt.close(fig2)
279280

280281

0 commit comments

Comments
 (0)