Skip to content

Commit

Permalink
debug: try to figure out this out of range value
Browse files Browse the repository at this point in the history
  • Loading branch information
william-silversmith committed Feb 26, 2025
1 parent 584d78b commit ef3e4db
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions kimimaro/trace.py
Original file line number Diff line number Diff line change
Expand Up @@ -352,6 +352,8 @@ def compute_pdrf(dbf_max, pdrf_scale, pdrf_exponent, DBF, DAF):
# provide trickle of gradient so open spaces don't collapse
max_daf = np.max(DAF)
if max_daf != 0:
print(max_daf)
print(DAF)
PDRF += DAF * (1 / max_daf)

return np.asfortranarray(PDRF)
Expand Down

0 comments on commit ef3e4db

Please sign in to comment.