Skip to content

Commit

Permalink
fix warning
Browse files Browse the repository at this point in the history
  • Loading branch information
xumi1993 committed Nov 12, 2024
1 parent f32bdb2 commit 3850a38
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pytomoatt/src_rec.py
Original file line number Diff line number Diff line change
Expand Up @@ -1025,7 +1025,7 @@ def calc_azi_gap(az):
sorted_az = np.sort(az)
az_diffs = np.diff(np.concatenate((sorted_az, [sorted_az[0] + 360])))
return np.max(az_diffs)
max_gap = self.rec_points.groupby('src_index').apply(lambda x: calc_azi_gap(x['az'].values))
max_gap = self.rec_points.groupby('src_index')['az'].apply(lambda x: calc_azi_gap(x.values))
self.src_points = self.src_points[(max_gap < max_azi_gap)]

self.update()
Expand Down

0 comments on commit 3850a38

Please sign in to comment.