Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

examples: tidied up notebooks and examples for paper submission #22

Merged
merged 9 commits into from
Jun 29, 2023
Prev Previous commit
Next Next commit
geometry: added floating point tolerance back into interior sectioning
  • Loading branch information
EdCaunt committed Jun 29, 2023
commit 0635e0ac802491574b7001c4fe5347a166ab886b
4 changes: 3 additions & 1 deletion schism/geometry/geometry.py
Original file line number Diff line number Diff line change
Expand Up @@ -236,8 +236,10 @@ def _get_interior_mask(self):
_, i = kdtree.query(query, workers=-1)

# Check nearest boundary point not in box
# Errs on the side of caution (cutoff slightly larger
# according to floating point precision)
interior = np.any(np.abs(query - bp[i])
> cutoff*np.array(spacing)[np.newaxis, :],
> (cutoff+_feps)*np.array(spacing)[np.newaxis, :],
axis=1)

# Fill interior mask away from boundary
Expand Down