From 6f222bb9ada5ae8eeefd92ba70eba278e577e484 Mon Sep 17 00:00:00 2001 From: Christoph Hansknecht Date: Wed, 10 Jul 2024 15:52:13 +0200 Subject: [PATCH] Fix bug in integration solver --- pygradflow/integration/integration_solver.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pygradflow/integration/integration_solver.py b/pygradflow/integration/integration_solver.py index 313a468..22572db 100644 --- a/pygradflow/integration/integration_solver.py +++ b/pygradflow/integration/integration_solver.py @@ -118,7 +118,7 @@ def create_filter(self, z, rho): fixed_indices[ambiguous_lb] = ddx[ambiguous_lb] < 0 ambiguous_ub = np.logical_and(at_ub, dx_zero) - fixed_indices[ambiguous_ub] = ddx[ambiguous_lb] > 0 + fixed_indices[ambiguous_ub] = ddx[ambiguous_ub] > 0 return np.logical_not(fixed_indices)