Skip to content

Commit

Permalink
fix: ensure 2d pos inputs are ints for ccl
Browse files Browse the repository at this point in the history
  • Loading branch information
william-silversmith committed Feb 19, 2024
1 parent caa38fe commit 4a3ac2e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xs3d/twod.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ def cross_sectional_area_2d(
nhat = nhat / np.sqrt(nhat[0] ** 2 + nhat[1] ** 2)

ccl = get_ccl(binimg, pos, vec)
label = ccl[pos[0], pos[1]]
label = ccl[int(pos[0]), int(pos[1])]

total = 0.0

Expand Down

0 comments on commit 4a3ac2e

Please sign in to comment.