From 464204a92b4962df17bf047fa376080e40c20d4e Mon Sep 17 00:00:00 2001 From: Ed Schmerling Date: Thu, 21 Mar 2024 16:08:22 -0700 Subject: [PATCH 1/2] Remove extra `self` argument from calls to `optimal_control_and_disturbance` Fixes #10. --- hj_reachability/dynamics.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hj_reachability/dynamics.py b/hj_reachability/dynamics.py index 1252e55..9073f1f 100644 --- a/hj_reachability/dynamics.py +++ b/hj_reachability/dynamics.py @@ -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.""" From 422b2b44fe5f2259319d300dab49ba571ad96453 Mon Sep 17 00:00:00 2001 From: Ed Schmerling Date: Thu, 21 Mar 2024 16:12:12 -0700 Subject: [PATCH 2/2] Bump version to 0.6.0 --- hj_reachability/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hj_reachability/__init__.py b/hj_reachability/__init__.py index 1a7c8d8..99625bb 100644 --- a/hj_reachability/__init__.py +++ b/hj_reachability/__init__.py @@ -10,7 +10,7 @@ from hj_reachability.grid import Grid from hj_reachability.solver import SolverSettings, solve, step -__version__ = "0.5.0" +__version__ = "0.6.0" __all__ = ("ControlAndDisturbanceAffineDynamics", "Dynamics", "Grid", "SolverSettings", "artificial_dissipation", "boundary_conditions", "finite_differences", "sets", "solve", "solver", "step", "systems",