Skip to content

Commit

Permalink
Use _constants instead of constants
Browse files Browse the repository at this point in the history
  • Loading branch information
unalmis committed Sep 15, 2024
1 parent 8b656f2 commit 3a93117
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions desc/objectives/_neoclassical.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,12 +173,11 @@ def build(self, use_jit=True, verbose=1):
)
else:
rho = self._grid_1dr.compress(self._grid_1dr.nodes[:, 0])

Check warning on line 175 in desc/objectives/_neoclassical.py

View check run for this annotation

Codecov / codecov/patch

desc/objectives/_neoclassical.py#L175

Added line #L175 was not covered by tests
self.constants["rho"] = rho
self.constants["quad"] = get_quadrature(
self._constants["rho"] = rho
self._constants["quad"] = get_quadrature(
leggauss_lob(self._hyperparameters.pop("num_quad")),
Bounce1D._default_automorphism,
)

self._dim_f = rho.size
self._target, self._bounds = _parse_callable_target_bounds(
self._target, self._bounds, rho
Expand Down

0 comments on commit 3a93117

Please sign in to comment.