diff options
author | Edoardo Pasca <edo.paskino@gmail.com> | 2019-06-13 15:47:51 +0100 |
---|---|---|
committer | Edoardo Pasca <edo.paskino@gmail.com> | 2019-06-13 15:47:51 +0100 |
commit | 8573fb599ff506a9ebf3f2d5d07deb9b5c671609 (patch) | |
tree | ca1254857cad19fc733261517066ca18a1a7d837 /Wrappers/Python | |
parent | e162d5ef4897dcdfdb9b27af050939298409301d (diff) | |
download | framework-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-x | Wrappers/Python/ccpi/optimisation/algorithms/CGLS.py | 4 |
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) |