Skip to content

Commit

Permalink
fix: float-integer conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
paulmueller committed Jun 4, 2020
1 parent 035c0b1 commit cfa6d83
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion radontea/_alg_sart.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ def sart(sinogram, angles, initial=None, iterations=1,
# Delta s: distance between sample points
# Setting it to half the pixel spacing:
length = 2. * dist
num_points = 2 * np.ceil(2 * dist) + 1
num_points = 2 * int(np.ceil(2 * dist)) + 1
# endpoints are on the reconstruction circle.
# Therefore "-1"
ds = length / (num_points - 1)
Expand Down

0 comments on commit cfa6d83

Please sign in to comment.