Skip to content
Snippets Groups Projects
Commit 7f516f1c authored by Johannes Schumann's avatar Johannes Schumann
Browse files

yapf

parent b7d84f34
No related branches found
No related tags found
No related merge requests found
Checking pipeline status
...@@ -293,8 +293,9 @@ def write_detector_file(gibuu_output, ...@@ -293,8 +293,9 @@ def write_detector_file(gibuu_output,
]) ])
p_dir = rotation.apply(mom / np.linalg.norm(mom)) p_dir = rotation.apply(mom / np.linalg.norm(mom))
try: try:
prtcl_pos = np.array( prtcl_pos = np.array([
[particle_data.x[i], particle_data.y[i], particle_data.z[i]]) particle_data.x[i], particle_data.y[i], particle_data.z[i]
])
trk.pos.set(*np.add(pos_offset, prtcl_pos)) trk.pos.set(*np.add(pos_offset, prtcl_pos))
except AttributeError: except AttributeError:
trk.pos.set(*pos_offset) trk.pos.set(*pos_offset)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment