From f0d96116d3857aa1a64a2507526b8898b5ed0d4b Mon Sep 17 00:00:00 2001 From: Jelena Petereit <108803123+jelenakhlr@users.noreply.github.com> Date: Wed, 6 Mar 2024 14:05:53 +0100 Subject: [PATCH 1/2] remove prints that are not needed --- sim2root/CoREASRawRoot/CoreasToRawROOT.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/sim2root/CoREASRawRoot/CoreasToRawROOT.py b/sim2root/CoREASRawRoot/CoreasToRawROOT.py index b2a7acf8..01ae56ec 100644 --- a/sim2root/CoREASRawRoot/CoreasToRawROOT.py +++ b/sim2root/CoREASRawRoot/CoreasToRawROOT.py @@ -442,9 +442,7 @@ def CoreasToRawRoot(file, simID=None): # padding_right = max(0, final_length - len(trace_x) - shift) # Create a new array with zeros and appropriate padding - print(trace_x.shape) trace_x_new = np.zeros(final_length) - print(trace_x_new[padding_left:padding_left + len(trace_x)].shape) if shift > 0: # for positive shift From 0c6f1131d12fa54c379dfd782ce5c0398ca71b79 Mon Sep 17 00:00:00 2001 From: Jelena Petereit <108803123+jelenakhlr@users.noreply.github.com> Date: Wed, 6 Mar 2024 14:06:19 +0100 Subject: [PATCH 2/2] remove trace printout --- sim2root/CoREASRawRoot/CoreasToRawROOT.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/sim2root/CoREASRawRoot/CoreasToRawROOT.py b/sim2root/CoREASRawRoot/CoreasToRawROOT.py index 01ae56ec..b03c7846 100644 --- a/sim2root/CoREASRawRoot/CoreasToRawROOT.py +++ b/sim2root/CoREASRawRoot/CoreasToRawROOT.py @@ -475,10 +475,6 @@ def CoreasToRawRoot(file, simID=None): trace_y = trace_y_new trace_z = trace_z_new - # TODO: get rid of this once we are done testing traces :) - data = np.column_stack((trace_x, trace_y, trace_z)) # Combine data into a 2D array - np.savetxt(f"testtrace_{antenna}.csv", data, delimiter=",", header="trace_x,trace_y,trace_z") # Save with headers - # add to ROOT tree # in Zhaires converter: AntennaN[ant_ID]