Parallel3dAxisGeometry.__getitem__¶
- Parallel3dAxisGeometry.__getitem__(indices)[source]¶
Return self[indices].
This is defined by
self[indices].partition == self.partition[indices]
where all other parameters are the same.
Examples
>>> apart = odl.uniform_partition(0, 4, 4) >>> dpart = odl.uniform_partition([-1, -1], [1, 1], [20, 20]) >>> geom = odl.tomo.Parallel3dAxisGeometry(apart, dpart)
Extract sub-geometry with every second angle:
>>> geom[::2] Parallel3dAxisGeometry( nonuniform_partition( [ 0.5, 2.5], min_pt=0.0, max_pt=4.0 ), uniform_partition([-1., -1.], [ 1., 1.], (20, 20)) )