Skip to content

Commit

Permalink
delete comments and change grid
Browse files Browse the repository at this point in the history
changed grid to N=32. Everything is passing
  • Loading branch information
kianorr committed Feb 8, 2024
1 parent 22b4b63 commit c874e84
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions desc/objectives/_geometry.py
Original file line number Diff line number Diff line change
Expand Up @@ -490,18 +490,14 @@ def build(self, use_jit=True, verbose=1):
"""Build objective function."""
coil = self.things[0]
self._dim_f = 1
# TODO: is this the correct data key?
# seems like it because it gives the circumference of a circular coil?
self._data_keys = ["length"]

timer = Timer()
if verbose > 0:
print("Precomputing transforms")
timer.start("Precomputing transforms")

grid = LinearGrid(L=4, M=4)
# TODO: what grid is supposed to be used here?
# TODO: am I supposed to use obj=coil?
grid = LinearGrid(N=32)
profiles = get_profiles(self._data_keys, obj=coil, grid=grid)
transforms = get_transforms(self._data_keys, obj=coil, grid=grid)
self._constants = {
Expand All @@ -520,8 +516,6 @@ def compute(self, params, constants=None):
if constants is None:
constants = self._constants

# TODO: gets KeyError with 'rotmat' when computing 'x_s'.
# why does coil.compute("length") work and not this?
data = compute_fun(
self.things[0],
self._data_keys,
Expand Down

0 comments on commit c874e84

Please sign in to comment.