Skip to content

Commit

Permalink
Merge pull request #1099 from aringh/update_unweighted_ray_transform
Browse files Browse the repository at this point in the history
ENH/BUG: update of unweighted ray transform.
  • Loading branch information
adler-j authored Aug 29, 2017
2 parents d8b1882 + df30402 commit c2187cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion odl/tomo/operators/ray_trafo.py
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ def __init__(self, reco_space, geometry, variant, **kwargs):
proj_uspace = FunctionSpace(geometry.params, out_dtype=dtype)

if isinstance(reco_space.weighting, NoWeighting):
weighting = 1.0
weighting = None
elif (isinstance(reco_space.weighting, ConstWeighting) and
np.isclose(reco_space.weighting.const,
reco_space.cell_volume)):
Expand Down

0 comments on commit c2187cd

Please sign in to comment.