Skip to content

Commit

Permalink
Merge branch 'master' into yge/cpu
Browse files Browse the repository at this point in the history
  • Loading branch information
YigitElma authored Jul 11, 2024
2 parents 8d5ea63 + 56befac commit f0b6e68
Show file tree
Hide file tree
Showing 49 changed files with 2,975 additions and 2,806 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ New Features

- Add method ``from_values`` to ``FourierRZCurve`` to allow fitting of data points
to a ``FourierRZCurve`` object, and ``to_FourierRZCurve`` methods to ``Curve`` class.
- Adds the objective `CoilsetMinDistance`, which returns the minimum distance to another
coil for each coil in a coilset.
- Adds the objective `PlasmaCoilsetMinDistance`, which returns the minimum distance to the
plasma surface for each coil in a coilset.

v0.11.1
-------
Expand Down
19 changes: 10 additions & 9 deletions desc/basis.py
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,8 @@ def NFP(self):

@property
def sym(self):
"""str: {``'cos'``, ``'sin'``, ``False``} Type of symmetry."""
"""str: Type of symmetry."""
# one of: {'even', 'sin', 'cos', 'cos(t)', False}
return self.__dict__.setdefault("_sym", False)

@property
Expand Down Expand Up @@ -238,7 +239,7 @@ def __init__(self, L, sym="even"):
self._M = 0
self._N = 0
self._NFP = 1
self._sym = sym
self._sym = bool(sym) if not sym else str(sym)
self._spectral_indexing = "linear"

self._modes = self._get_modes(L=self.L)
Expand Down Expand Up @@ -351,7 +352,7 @@ def __init__(self, N, NFP=1, sym=False):
self._M = 0
self._N = check_nonnegint(N, "N", False)
self._NFP = check_posint(NFP, "NFP", False)
self._sym = sym
self._sym = bool(sym) if not sym else str(sym)
self._spectral_indexing = "linear"

self._modes = self._get_modes(N=self.N)
Expand Down Expand Up @@ -474,7 +475,7 @@ def __init__(self, M, N, NFP=1, sym=False):
self._M = check_nonnegint(M, "M", False)
self._N = check_nonnegint(N, "N", False)
self._NFP = check_posint(NFP, "NFP", False)
self._sym = sym
self._sym = bool(sym) if not sym else str(sym)
self._spectral_indexing = "linear"

self._modes = self._get_modes(M=self.M, N=self.N)
Expand Down Expand Up @@ -635,8 +636,8 @@ def __init__(self, L, M, sym=False, spectral_indexing="ansi"):
self._M = check_nonnegint(M, "M", False)
self._N = 0
self._NFP = 1
self._sym = sym
self._spectral_indexing = spectral_indexing
self._sym = bool(sym) if not sym else str(sym)
self._spectral_indexing = str(spectral_indexing)

self._modes = self._get_modes(
L=self.L, M=self.M, spectral_indexing=self.spectral_indexing
Expand Down Expand Up @@ -831,7 +832,7 @@ def __init__(self, L, M, N, NFP=1, sym=False):
self._M = check_nonnegint(M, "M", False)
self._N = check_nonnegint(N, "N", False)
self._NFP = check_posint(NFP, "NFP", False)
self._sym = sym
self._sym = bool(sym) if not sym else str(sym)
self._spectral_indexing = "linear"

self._modes = self._get_modes(L=self.L, M=self.M, N=self.N)
Expand Down Expand Up @@ -983,8 +984,8 @@ def __init__(self, L, M, N, NFP=1, sym=False, spectral_indexing="ansi"):
self._M = check_nonnegint(M, "M", False)
self._N = check_nonnegint(N, "N", False)
self._NFP = check_posint(NFP, "NFP", False)
self._sym = sym
self._spectral_indexing = spectral_indexing
self._sym = bool(sym) if not sym else str(sym)
self._spectral_indexing = str(spectral_indexing)

self._modes = self._get_modes(
L=self.L, M=self.M, N=self.N, spectral_indexing=self.spectral_indexing
Expand Down
Loading

0 comments on commit f0b6e68

Please sign in to comment.