Skip to content

Commit 6bfd886

Browse files
committed
DOC/TST: fix various doctest failures
1 parent cd66fa1 commit 6bfd886

File tree

3 files changed

+5
-17
lines changed

3 files changed

+5
-17
lines changed

odl/solvers/util/callback.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ def __repr__(self):
173173
>>> callback = odl.solvers.CallbackPrint()
174174
>>> operator = odl.ScalingOperator(r3, 2.0)
175175
>>> callback * operator
176-
CallbackPrint() * ScalingOperator(rn(3), 2.0)
176+
CallbackPrint() * ScalingOperator(rn(3), scalar=2.0)
177177
"""
178178
return '{!r} * {!r}'.format(self.callback, self.operator)
179179

odl/tomo/geometry/conebeam.py

+2-8
Original file line numberDiff line numberDiff line change
@@ -533,10 +533,7 @@ def __getitem__(self, indices):
533533
534534
>>> geom[::2, :]
535535
FanFlatGeometry(
536-
nonuniform_partition(
537-
[ 0.5, 2.5],
538-
min_pt=0.0, max_pt=4.0
539-
),
536+
nonuniform_partition([ 0.5, 2.5], min_pt=0.0, max_pt=4.0),
540537
uniform_partition(-1.0, 1.0, 20),
541538
src_radius=50.0,
542539
det_radius=100.0
@@ -1183,10 +1180,7 @@ def __getitem__(self, indices):
11831180
11841181
>>> geom[::2]
11851182
ConeFlatGeometry(
1186-
nonuniform_partition(
1187-
[ 0.5, 2.5],
1188-
min_pt=0.0, max_pt=4.0
1189-
),
1183+
nonuniform_partition([ 0.5, 2.5], min_pt=0.0, max_pt=4.0),
11901184
uniform_partition([-1., -1.], [ 1., 1.], (20, 20)),
11911185
src_radius=50.0,
11921186
det_radius=100.0,

odl/tomo/geometry/parallel.py

+2-8
Original file line numberDiff line numberDiff line change
@@ -682,10 +682,7 @@ def __getitem__(self, indices):
682682
683683
>>> geom[::2]
684684
Parallel2dGeometry(
685-
nonuniform_partition(
686-
[ 0.5, 2.5],
687-
min_pt=0.0, max_pt=4.0
688-
),
685+
nonuniform_partition([ 0.5, 2.5], min_pt=0.0, max_pt=4.0),
689686
uniform_partition(-1.0, 1.0, 20)
690687
)
691688
"""
@@ -1446,10 +1443,7 @@ def __getitem__(self, indices):
14461443
14471444
>>> geom[::2]
14481445
Parallel3dAxisGeometry(
1449-
nonuniform_partition(
1450-
[ 0.5, 2.5],
1451-
min_pt=0.0, max_pt=4.0
1452-
),
1446+
nonuniform_partition([ 0.5, 2.5], min_pt=0.0, max_pt=4.0),
14531447
uniform_partition([-1., -1.], [ 1., 1.], (20, 20))
14541448
)
14551449
"""

0 commit comments

Comments
 (0)