Skip to content

Commit

Permalink
DOC/TST: fix various doctest failures
Browse files Browse the repository at this point in the history
  • Loading branch information
kohr-h committed Jun 25, 2018
1 parent cd66fa1 commit 6bfd886
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 17 deletions.
2 changes: 1 addition & 1 deletion odl/solvers/util/callback.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ def __repr__(self):
>>> callback = odl.solvers.CallbackPrint()
>>> operator = odl.ScalingOperator(r3, 2.0)
>>> callback * operator
CallbackPrint() * ScalingOperator(rn(3), 2.0)
CallbackPrint() * ScalingOperator(rn(3), scalar=2.0)
"""
return '{!r} * {!r}'.format(self.callback, self.operator)

Expand Down
10 changes: 2 additions & 8 deletions odl/tomo/geometry/conebeam.py
Original file line number Diff line number Diff line change
Expand Up @@ -533,10 +533,7 @@ def __getitem__(self, indices):
>>> geom[::2, :]
FanFlatGeometry(
nonuniform_partition(
[ 0.5, 2.5],
min_pt=0.0, max_pt=4.0
),
nonuniform_partition([ 0.5, 2.5], min_pt=0.0, max_pt=4.0),
uniform_partition(-1.0, 1.0, 20),
src_radius=50.0,
det_radius=100.0
Expand Down Expand Up @@ -1183,10 +1180,7 @@ def __getitem__(self, indices):
>>> geom[::2]
ConeFlatGeometry(
nonuniform_partition(
[ 0.5, 2.5],
min_pt=0.0, max_pt=4.0
),
nonuniform_partition([ 0.5, 2.5], min_pt=0.0, max_pt=4.0),
uniform_partition([-1., -1.], [ 1., 1.], (20, 20)),
src_radius=50.0,
det_radius=100.0,
Expand Down
10 changes: 2 additions & 8 deletions odl/tomo/geometry/parallel.py
Original file line number Diff line number Diff line change
Expand Up @@ -682,10 +682,7 @@ def __getitem__(self, indices):
>>> geom[::2]
Parallel2dGeometry(
nonuniform_partition(
[ 0.5, 2.5],
min_pt=0.0, max_pt=4.0
),
nonuniform_partition([ 0.5, 2.5], min_pt=0.0, max_pt=4.0),
uniform_partition(-1.0, 1.0, 20)
)
"""
Expand Down Expand Up @@ -1446,10 +1443,7 @@ def __getitem__(self, indices):
>>> geom[::2]
Parallel3dAxisGeometry(
nonuniform_partition(
[ 0.5, 2.5],
min_pt=0.0, max_pt=4.0
),
nonuniform_partition([ 0.5, 2.5], min_pt=0.0, max_pt=4.0),
uniform_partition([-1., -1.], [ 1., 1.], (20, 20))
)
"""
Expand Down

0 comments on commit 6bfd886

Please sign in to comment.