Skip to content

Commit

Permalink
fixing changes to fft related PR
Browse files Browse the repository at this point in the history
  • Loading branch information
jgostick committed Aug 24, 2024
1 parent a923fc6 commit 26c48ad
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/porespy/metrics/_funcs.py
Original file line number Diff line number Diff line change
Expand Up @@ -770,9 +770,9 @@ def _radial_profile(autocorr, bins, pf=None, voxel_size=1):
def _get_radial_sum(dt, bins, bin_size, autocorr):
radial_sum = np.zeros_like(bins[:-1], dtype=np.float64)
for i, r in enumerate(bins[:-1]):
mask = (dt <= r) & (dt > (r - bin_size[i]))
if np.any(mask):
radial_sum[i] = np.sum(autocorr[mask], dtype=np.float64) / np.sum(mask, dtype=np.float64)
mask = (dt <= r) * (dt > (r - bin_size[i]))
radial_sum[i] = (np.sum(np.ravel(autocorr)[np.ravel(mask)], dtype=np.int64) /

Check warning on line 774 in src/porespy/metrics/_funcs.py

View check run for this annotation

Codecov / codecov/patch

src/porespy/metrics/_funcs.py#L773-L774

Added lines #L773 - L774 were not covered by tests
np.sum(mask, dtype=np.int64))
return radial_sum


Expand Down

0 comments on commit 26c48ad

Please sign in to comment.