[ell] fix crash when ccw=None but spacing is non-scalar
This commit is contained in:
parent
32744512e0
commit
6fd73b9d46
2 changed files with 15 additions and 1 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue