summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVaggelis Papoutsellis <22398586+epapoutsellis@users.noreply.github.com>2018-11-30 14:06:37 +0000
committerGitHub <noreply@github.com>2018-11-30 14:06:37 +0000
commit058ecf0b188f0f64490136a7751cbd029f3aadb0 (patch)
tree1c24861d9b6901ade27c8c9c4656b6ed4dc82288
parentf9a2b70e31614f70cc733bb4aa0c3c05d92dbc47 (diff)
parent7fd42101e608e57de66eb9bebd6abbbc704c019a (diff)
downloadastra-wrapper-058ecf0b188f0f64490136a7751cbd029f3aadb0.tar.gz
astra-wrapper-058ecf0b188f0f64490136a7751cbd029f3aadb0.tar.bz2
astra-wrapper-058ecf0b188f0f64490136a7751cbd029f3aadb0.tar.xz
astra-wrapper-058ecf0b188f0f64490136a7751cbd029f3aadb0.zip
Merge pull request #13 from vais-ral/fix_demos
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()