summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEdoardo Pasca <edo.paskino@gmail.com>2019-04-30 16:22:29 +0100
committerGitHub <noreply@github.com>2019-04-30 16:22:29 +0100
commitd6b38d0e635db69f46b603525d746620a47f0528 (patch)
tree375fbd5625efd8c2831a1f07c4cb57bac67e054e
parent590a1178f8eaef600541e9a8a6a863b07afca806 (diff)
downloadastra-wrapper-d6b38d0e635db69f46b603525d746620a47f0528.tar.gz
astra-wrapper-d6b38d0e635db69f46b603525d746620a47f0528.tar.bz2
astra-wrapper-d6b38d0e635db69f46b603525d746620a47f0528.tar.xz
astra-wrapper-d6b38d0e635db69f46b603525d746620a47f0528.zip
add default value to out
-rw-r--r--Wrappers/Python/ccpi/astra/processors/AstraBackProjectorMC.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Wrappers/Python/ccpi/astra/processors/AstraBackProjectorMC.py b/Wrappers/Python/ccpi/astra/processors/AstraBackProjectorMC.py
index 84932b6..ef8fe5d 100644
--- a/Wrappers/Python/ccpi/astra/processors/AstraBackProjectorMC.py
+++ b/Wrappers/Python/ccpi/astra/processors/AstraBackProjectorMC.py
@@ -23,7 +23,7 @@ class AstraBackProjectorMC(AstraBackProjector):
raise ValueError("Expected input dimensions is 2 or 3, got {0}"\
.format(dataset.number_of_dimensions))
- def process(self, out):
+ def process(self, out=None):
DATA = self.get_input()
IM = ImageData(geometry=self.volume_geometry)
@@ -43,4 +43,4 @@ class AstraBackProjectorMC(AstraBackProjector):
if out is None:
return ret
else:
- out.fill(ret) \ No newline at end of file
+ out.fill(ret)