Skip to content

Commit

Permalink
Update parastell/magnet_coils.py
Browse files Browse the repository at this point in the history
Co-authored-by: Paul Wilson <[email protected]>
  • Loading branch information
connoramoreno and gonuke authored Oct 3, 2024
1 parent 218346f commit 11858f5
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions parastell/magnet_coils.py
Original file line number Diff line number Diff line change
Expand Up @@ -485,9 +485,7 @@ def orient_coords(self, positive=True):
(defaults to True). If negative, coordinates will progress in
negative direction.
"""
if (positive and self.coords[0, 2] > self.coords[1, 2]) or (
not positive and self.coords[0, 2] < self.coords[1, 2]
):
if (positive == (self.coords[0, 2] > self.coords[1, 2]) ):
self.coords = np.flip(self.coords, axis=0)


Expand Down

0 comments on commit 11858f5

Please sign in to comment.