Skip to content

Commit

Permalink
add a stacklevel trace in opti, to allow proper error tracing
Browse files Browse the repository at this point in the history
  • Loading branch information
peterdsharpe committed Jan 4, 2024
1 parent aa8f238 commit 41c297b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions aerosandbox/optimization/opti.py
Original file line number Diff line number Diff line change
Expand Up @@ -1168,6 +1168,7 @@ def constrain_derivative(self,
)
duals = self.subject_to(
np.diff(variable) == integrals,
_stacklevel=_stacklevel + 1
)

return duals
Expand Down

0 comments on commit 41c297b

Please sign in to comment.