Skip to content

Commit

Permalink
Update raw_event_generator.py
Browse files Browse the repository at this point in the history
use warning instead of a mix of warning and print
  • Loading branch information
YifanC authored May 30, 2024
1 parent 1b4a947 commit 9800a96
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/proto_nd_flow/reco/charge/raw_event_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ def init(self):
self.vertex_id_name = 'file_vertex_id'
else:
self.vertex_id_name = 'vertex_id'
print("Using 'vertex_id'(unique for beam simulation, but not for mpvmpr) instead of 'file_vertex_id'.")
warnings.warn("Using 'vertex_id'(unique for beam simulation, but not for mpvmpr) instead of 'file_vertex_id'.")

if 'file_traj_id' in self.input_fh['trajectories'].dtype.names:
self.traj_id_name = 'file_traj_id'
Expand Down

0 comments on commit 9800a96

Please sign in to comment.