Skip to content

Commit

Permalink
Fix if statement from previous commit
Browse files Browse the repository at this point in the history
  • Loading branch information
unalmis committed Nov 24, 2024
1 parent 10b547f commit 5511ce6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions desc/objectives/_neoclassical.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@
"deriv_mode": """
deriv_mode : {"auto", "fwd", "rev"}
Specify how to compute Jacobian matrix, either forward mode or reverse mode AD.
"auto" selects forward or reverse mode based on the size of the input and output
of the objective. Has no effect on ``self.grad`` or ``self.hess`` which always
use reverse mode and forward over reverse mode respectively.
``auto`` selects forward or reverse mode based on the size of the input and
output of the objective. Has no effect on ``self.grad`` or ``self.hess`` which
always use reverse mode and forward over reverse mode respectively.
Default is ``fwd``. If ``rev`` is chosen, then ``jac_chunk_size=1`` is chosen
by default. In ``rev`` mode, reducing the pitch angle parameter ``batch_size``
Expand Down Expand Up @@ -493,7 +493,7 @@ def compute(self, params, constants=None):
"""
if constants is None:
constants = self.constants
if "quad2" in constants:
if "quad2 x" in constants:
self._hyperparam["quad2"] = (constants["quad2 x"], constants["quad2 w"])

eq = self.things[0]
Expand Down

0 comments on commit 5511ce6

Please sign in to comment.