Parallel2dGeometry.__getitem__¶
-
Parallel2dGeometry.
__getitem__
(self, indices)[source]¶ Return self[slc]
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, 20) >>> geom = odl.tomo.Parallel2dGeometry(apart, dpart)
Extract sub-geometry with every second angle:
>>> geom[::2] Parallel2dGeometry( nonuniform_partition( [ 0.5, 2.5], min_pt=0.0, max_pt=4.0 ), uniform_partition(-1.0, 1.0, 20) )