[ell] fix crash when ccw=None but spacing is non-scalar

This commit is contained in:
Jan Petykiewicz 2026-04-01 21:58:21 -07:00
commit 6fd73b9d46
2 changed files with 15 additions and 1 deletions

View file

@ -84,7 +84,7 @@ def ell(
raise BuildError('Empty port list passed to `ell()`')
if ccw is None:
if spacing is not None and not numpy.isclose(spacing, 0):
if spacing is not None and not numpy.allclose(spacing, 0):
raise BuildError('Spacing must be 0 or None when ccw=None')
spacing = 0
elif spacing is None: