Skip to content

Commit

Permalink
Remove extra self argument from calls to `optimal_control_and_distu…
Browse files Browse the repository at this point in the history
…rbance`

Fixes #10.
  • Loading branch information
schmrlng committed Mar 21, 2024
1 parent 068103b commit 464204a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hj_reachability/dynamics.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,11 @@ def optimal_control_and_disturbance(self, state, time, grad_value):

def optimal_control(self, state, time, grad_value):
"""Computes the optimal control realized by the HJ PDE Hamiltonian."""
return self.optimal_control_and_disturbance(self, state, time, grad_value)[0]
return self.optimal_control_and_disturbance(state, time, grad_value)[0]

def optimal_disturbance(self, state, time, grad_value):
"""Computes the optimal disturbance realized by the HJ PDE Hamiltonian."""
return self.optimal_control_and_disturbance(self, state, time, grad_value)[1]
return self.optimal_control_and_disturbance(state, time, grad_value)[1]

def hamiltonian(self, state, time, value, grad_value):
"""Evaluates the HJ PDE Hamiltonian."""
Expand Down

0 comments on commit 464204a

Please sign in to comment.