Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Sep 20, 2024
1 parent 2c2721c commit 3e56fd2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fuse/plugins/detector_physics/electron_propagation.py
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ def rotate_axis(self, x_obs, y_obs, angle):

def get_near_wires_mask(self, positions):
"""Returns a mask selecting the events near the perpendicular wires."""
x_rot, y_rot = rotate_axis(self, positions[:,0], positions[:,1], self.perp_wire_angle)
x_rot, y_rot = rotate_axis(self, positions[:, 0], positions[:, 1], self.perp_wire_angle)
mask_near_wires = np.abs(x_rot) - self.perp_wire_x_pos < self.perp_wires_cut_distance[1]
mask_near_wires &= np.abs(x_rot) - self.perp_wire_x_pos > -self.perp_wires_cut_distance[0]
return mask_near_wires
Expand Down

0 comments on commit 3e56fd2

Please sign in to comment.