Skip to content

Commit

Permalink
Revert filament toroidal angle checking
Browse files Browse the repository at this point in the history
  • Loading branch information
connoramoreno committed Oct 8, 2024
1 parent ba57ecc commit cd3f865
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions parastell/magnet_coils.py
Original file line number Diff line number Diff line change
Expand Up @@ -430,9 +430,12 @@ def in_toroidal_extent(self, lower_bound, upper_bound):
max_tor_ang = np.max(toroidal_angles)

# Determine if filament toroidal extent overlaps with that of model
in_toroidal_extent = (lower_bound <= min_tor_ang <= upper_bound) or (
lower_bound <= max_tor_ang <= upper_bound
)
if (min_tor_ang >= lower_bound or min_tor_ang <= upper_bound) or (
max_tor_ang >= lower_bound or max_tor_ang <= upper_bound
):
in_toroidal_extent = True
else:
in_toroidal_extent = False

return in_toroidal_extent

Expand Down

0 comments on commit cd3f865

Please sign in to comment.