Skip to content

Commit

Permalink
Fix small bug in CNF (#1479)
Browse files Browse the repository at this point in the history
  • Loading branch information
dachengx authored Nov 16, 2024
1 parent ded7eab commit e222b25
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion straxen/plugins/peaks/peak_positions_cnf.py
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ def compute(self, peaks):

theta_array = np.arctan2(contours[..., 1], contours[..., 0])

avg_theta = np.arctan2(result[f"y_{self.algorithm}"], result[f"x_{self.algorithm}"])
avg_theta = np.arctan2(xy[:, 1], xy[:, 0])

theta_diff = self.calculate_theta_diff(theta_array, avg_theta)

Expand Down

0 comments on commit e222b25

Please sign in to comment.