diff options
author | Vaggelis Papoutsellis <22398586+epapoutsellis@users.noreply.github.com> | 2019-10-29 14:30:47 +0000 |
---|---|---|
committer | Edoardo Pasca <edo.paskino@gmail.com> | 2019-10-29 14:30:47 +0000 |
commit | c9cbea2823d5aa0033b92d7255aecdcd3bbd3bd0 (patch) | |
tree | 5c7e4c2b9c66486d10600b4453decfa6edb87a7a /Wrappers | |
parent | 75eec008412c984b90d9d2467c511c938737671c (diff) | |
download | framework-c9cbea2823d5aa0033b92d7255aecdcd3bbd3bd0.tar.gz framework-c9cbea2823d5aa0033b92d7255aecdcd3bbd3bd0.tar.bz2 framework-c9cbea2823d5aa0033b92d7255aecdcd3bbd3bd0.tar.xz framework-c9cbea2823d5aa0033b92d7255aecdcd3bbd3bd0.zip |
Block geometry (#415)
`BlockGeometry` passes `max_value` to `ImageGeometry` or `AcquisitionGeometry`
Diffstat (limited to 'Wrappers')
-rwxr-xr-x | Wrappers/Python/ccpi/framework/BlockGeometry.py | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/Wrappers/Python/ccpi/framework/BlockGeometry.py b/Wrappers/Python/ccpi/framework/BlockGeometry.py index ec2b940..988801f 100755 --- a/Wrappers/Python/ccpi/framework/BlockGeometry.py +++ b/Wrappers/Python/ccpi/framework/BlockGeometry.py @@ -56,8 +56,9 @@ class BlockGeometry(object): def allocate(self, value=0, dimension_labels=None, **kwargs):
+ max_value = kwargs.get('max_value', 100)
symmetry = kwargs.get('symmetry',False)
- containers = [geom.allocate(value) for geom in self.geometries]
+ containers = [geom.allocate(value, max_value = max_value) for geom in self.geometries]
if symmetry == True:
@@ -98,6 +99,4 @@ class BlockGeometry(object): return BlockDataContainer(*containers)
-
-
-
+
|