Skip to content

Commit

Permalink
ran autopep
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexWiedman committed Nov 2, 2023
1 parent 30bbfc6 commit b5fc112
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/simsopt/geo/curveplanarfourier.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class CurvePlanarFourier(sopp.CurvePlanarFourier, Curve):
where :math:`\theta` is the counterclockwise rotation about a unit axis
:math:`(\hat{x},\hat{y},\hat{z})`.
A quaternion is used for rotation rather than other methods for rotation to
prevent gimbal locking during optimization. The quaternion is normalized for
calculations to prevent scaling. The dofs themselves are not normalized. This
Expand Down
1 change: 1 addition & 0 deletions tests/geo/test_curve.py
Original file line number Diff line number Diff line change
Expand Up @@ -509,5 +509,6 @@ def test_load_curves_from_makegrid_file(self):

os.remove("coils.file_to_load")


if __name__ == "__main__":
unittest.main()
4 changes: 3 additions & 1 deletion tests/geo/test_equally_spaced_planar_coils.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
from simsopt.geo.curve import create_equally_spaced_curves, create_equally_spaced_planar_curves
from simsopt.field import coils_via_symmetries, BiotSavart, Current


class Testing(unittest.TestCase):
def test_equally_spaced_planar_coils(self):
ncoils = 4
Expand All @@ -20,7 +21,8 @@ def test_equally_spaced_planar_coils(self):
bs_planar = BiotSavart(coils_planar)
err = bs.AbsB()[0][0] - bs_planar.AbsB()[0][0]
print(err)
assert(err < 3e-10)
assert (err < 3e-10)


if __name__ == "__main__":
unittest.main()

0 comments on commit b5fc112

Please sign in to comment.