From 8573fb599ff506a9ebf3f2d5d07deb9b5c671609 Mon Sep 17 00:00:00 2001 From: Edoardo Pasca Date: Thu, 13 Jun 2019 15:47:51 +0100 Subject: remove check isnan which fails with BlockDataContainers --- Wrappers/Python/ccpi/optimisation/algorithms/CGLS.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'Wrappers') diff --git a/Wrappers/Python/ccpi/optimisation/algorithms/CGLS.py b/Wrappers/Python/ccpi/optimisation/algorithms/CGLS.py index 4faffad..15acc31 100755 --- a/Wrappers/Python/ccpi/optimisation/algorithms/CGLS.py +++ b/Wrappers/Python/ccpi/optimisation/algorithms/CGLS.py @@ -106,9 +106,7 @@ class CGLS(Algorithm): self.d *= alpha Ad *= alpha self.r -= Ad - if numpy.isnan(self.r.as_array()).any(): - print ("some nan") - raise StopIteration() + self.x += self.d self.operator.adjoint(self.r, out=self.s) -- cgit v1.2.3