summaryrefslogtreecommitdiffstats
path: root/Wrappers/Python
diff options
context:
space:
mode:
authorEdoardo Pasca <edo.paskino@gmail.com>2019-06-13 15:47:51 +0100
committerEdoardo Pasca <edo.paskino@gmail.com>2019-06-13 15:47:51 +0100
commit8573fb599ff506a9ebf3f2d5d07deb9b5c671609 (patch)
treeca1254857cad19fc733261517066ca18a1a7d837 /Wrappers/Python
parente162d5ef4897dcdfdb9b27af050939298409301d (diff)
downloadframework-8573fb599ff506a9ebf3f2d5d07deb9b5c671609.tar.gz
framework-8573fb599ff506a9ebf3f2d5d07deb9b5c671609.tar.bz2
framework-8573fb599ff506a9ebf3f2d5d07deb9b5c671609.tar.xz
framework-8573fb599ff506a9ebf3f2d5d07deb9b5c671609.zip
remove check isnan which fails with BlockDataContainers
Diffstat (limited to 'Wrappers/Python')
-rwxr-xr-xWrappers/Python/ccpi/optimisation/algorithms/CGLS.py4
1 files changed, 1 insertions, 3 deletions
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)