Skip to content

Commit

Permalink
hotfix for coilset conversion symmetry
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-dudt committed Apr 3, 2024
1 parent 5801ea8 commit e1413b5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions desc/coils.py
Original file line number Diff line number Diff line change
Expand Up @@ -1301,7 +1301,7 @@ def to_FourierXYZ(self, N=10, grid=None, s=None, name=""):
"""
coils = [coil.to_FourierXYZ(N, grid, s) for coil in self]
return self.__class__(*coils, name=name)
return self.__class__(*coils, NFP=self.NFP, sym=self.sym, name=name)

Check warning on line 1304 in desc/coils.py

View check run for this annotation

Codecov / codecov/patch

desc/coils.py#L1304

Added line #L1304 was not covered by tests

def to_SplineXYZ(self, knots=None, grid=None, method="cubic", name=""):
"""Convert all coils to SplineXYZCoil.
Expand Down Expand Up @@ -1336,7 +1336,7 @@ def to_SplineXYZ(self, knots=None, grid=None, method="cubic", name=""):
"""
coils = [coil.to_SplineXYZ(knots, grid, method) for coil in self]
return self.__class__(*coils, name=name)
return self.__class__(*coils, NFP=self.NFP, sym=self.sym, name=name)

Check warning on line 1339 in desc/coils.py

View check run for this annotation

Codecov / codecov/patch

desc/coils.py#L1339

Added line #L1339 was not covered by tests

def __add__(self, other):
if isinstance(other, (CoilSet)):
Expand Down

0 comments on commit e1413b5

Please sign in to comment.