summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorepapoutsellis <epapoutsellis@gmail.com>2018-11-30 14:03:11 +0000
committerepapoutsellis <epapoutsellis@gmail.com>2018-11-30 14:03:11 +0000
commit7fd42101e608e57de66eb9bebd6abbbc704c019a (patch)
tree1c24861d9b6901ade27c8c9c4656b6ed4dc82288
parent76faad7f6e5a64697b609b63fd4f5b74d595fdbd (diff)
downloadastra-wrapper-7fd42101e608e57de66eb9bebd6abbbc704c019a.tar.gz
astra-wrapper-7fd42101e608e57de66eb9bebd6abbbc704c019a.tar.bz2
astra-wrapper-7fd42101e608e57de66eb9bebd6abbbc704c019a.tar.xz
astra-wrapper-7fd42101e608e57de66eb9bebd6abbbc704c019a.zip
add allocate_direct
-rwxr-xr-xWrappers/Python/ccpi/astra/ops.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/Wrappers/Python/ccpi/astra/ops.py b/Wrappers/Python/ccpi/astra/ops.py
index 2e9d6af..6f3bb1b 100755
--- a/Wrappers/Python/ccpi/astra/ops.py
+++ b/Wrappers/Python/ccpi/astra/ops.py
@@ -181,4 +181,7 @@ class AstraProjectorMC(Operator):
return DataContainer(numpy.random.randn(self.volume_geometry.channels,
inputsize[0],
inputsize[1]))
+
+ def allocate_direct(self):
+ return self.create_image_data()