diff options
author | Edoardo Pasca <edo.paskino@gmail.com> | 2019-04-30 16:22:29 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-04-30 16:22:29 +0100 |
commit | d6b38d0e635db69f46b603525d746620a47f0528 (patch) | |
tree | 375fbd5625efd8c2831a1f07c4cb57bac67e054e | |
parent | 590a1178f8eaef600541e9a8a6a863b07afca806 (diff) | |
download | astra-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.py | 4 |
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) |