Skip to content

Commit cbb1fc4

Browse files
committed
Including absolute tolerance when determining zero dimensions in
1 parent 851649e commit cbb1fc4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tidy3d/components/data/unstructured/triangular.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ def _from_vtk_obj(
159159

160160
# detect zero size dimension
161161
bounds = np.max(points_numpy, axis=0) - np.min(points_numpy, axis=0)
162-
zero_dims = np.where(np.isclose(bounds, 0))[0]
162+
zero_dims = np.where(np.isclose(bounds, 0, atol=1e-6))[0]
163163

164164
if len(zero_dims) != 1:
165165
raise DataError(

0 commit comments

Comments
 (0)