From 7933e269363f6a24bc1258bea6779b8bff2c61ac Mon Sep 17 00:00:00 2001 From: Edoardo Pasca Date: Fri, 3 May 2019 15:54:09 +0100 Subject: PowerMethod is moved to LinearOperator (#20) * powermethod is moved to LinearOperator * remove comment --- Wrappers/Python/ccpi/astra/operators/AstraProjector3DSimple.py | 3 +-- Wrappers/Python/ccpi/astra/operators/AstraProjectorMC.py | 3 +-- Wrappers/Python/ccpi/astra/operators/AstraProjectorSimple.py | 5 ++--- 3 files changed, 4 insertions(+), 7 deletions(-) (limited to 'Wrappers/Python/ccpi') diff --git a/Wrappers/Python/ccpi/astra/operators/AstraProjector3DSimple.py b/Wrappers/Python/ccpi/astra/operators/AstraProjector3DSimple.py index 8058cdc..8ba7684 100644 --- a/Wrappers/Python/ccpi/astra/operators/AstraProjector3DSimple.py +++ b/Wrappers/Python/ccpi/astra/operators/AstraProjector3DSimple.py @@ -17,7 +17,6 @@ from ccpi.optimisation.operators import Operator, LinearOperator from ccpi.framework import AcquisitionData, ImageData, DataContainer -from ccpi.optimisation.ops import PowerMethodNonsquare from ccpi.astra.processors import AstraForwardProjector, AstraBackProjector, \ AstraForwardProjector3D, AstraBackProjector3D @@ -65,5 +64,5 @@ class AstraProjector3DSimple(LinearOperator): def norm(self): x0 = self.volume_geometry.allocate('random') - self.s1, sall, svec = PowerMethodNonsquare(self, 50, x0) + self.s1, sall, svec = LinearOperator.PowerMethodNonsquare(self, 50, x0) return self.s1 \ No newline at end of file diff --git a/Wrappers/Python/ccpi/astra/operators/AstraProjectorMC.py b/Wrappers/Python/ccpi/astra/operators/AstraProjectorMC.py index f796a63..514ffce 100644 --- a/Wrappers/Python/ccpi/astra/operators/AstraProjectorMC.py +++ b/Wrappers/Python/ccpi/astra/operators/AstraProjectorMC.py @@ -17,7 +17,6 @@ from ccpi.optimisation.operators import Operator, LinearOperator from ccpi.framework import AcquisitionData, ImageData, DataContainer -from ccpi.optimisation.ops import PowerMethodNonsquare from ccpi.astra.processors import AstraForwardProjector, AstraBackProjector, \ AstraForwardProjectorMC, AstraBackProjectorMC, AstraForwardProjector3D, \ AstraBackProjector3D @@ -68,5 +67,5 @@ class AstraProjectorMC(LinearOperator): def norm(self): x0 = self.volume_geometry.allocate('random') - self.s1, sall, svec = PowerMethodNonsquare(self, 50, x0) + self.s1, sall, svec = LinearOperator.PowerMethodNonsquare(self, 50, x0) return self.s1 \ No newline at end of file diff --git a/Wrappers/Python/ccpi/astra/operators/AstraProjectorSimple.py b/Wrappers/Python/ccpi/astra/operators/AstraProjectorSimple.py index 71bc3c6..ffe4700 100644 --- a/Wrappers/Python/ccpi/astra/operators/AstraProjectorSimple.py +++ b/Wrappers/Python/ccpi/astra/operators/AstraProjectorSimple.py @@ -17,7 +17,6 @@ from ccpi.optimisation.operators import Operator, LinearOperator from ccpi.framework import AcquisitionData, ImageData, DataContainer -from ccpi.optimisation.ops import PowerMethodNonsquare from ccpi.astra.processors import AstraForwardProjector, AstraBackProjector class AstraProjectorSimple(LinearOperator): @@ -66,5 +65,5 @@ class AstraProjectorSimple(LinearOperator): def norm(self): x0 = self.volume_geometry.allocate('random') - self.s1, sall, svec = PowerMethodNonsquare(self, 50, x0) - return self.s1 \ No newline at end of file + self.s1, sall, svec = LinearOperator.PowerMethodNonsquare(self, 50, x0) + return self.s1 -- cgit v1.2.3