[ell] fix set_rotation check
This commit is contained in:
parent
169f66cc85
commit
b8ee4bb05d
1 changed files with 1 additions and 1 deletions
|
|
@ -106,7 +106,7 @@ def ell(
|
||||||
raise BuildError('Asked to find aggregation for ports that face in different directions:\n'
|
raise BuildError('Asked to find aggregation for ports that face in different directions:\n'
|
||||||
+ pformat(port_rotations))
|
+ pformat(port_rotations))
|
||||||
else:
|
else:
|
||||||
if set_rotation is not None:
|
if set_rotation is None:
|
||||||
raise BuildError('set_rotation must be specified if no ports have rotations!')
|
raise BuildError('set_rotation must be specified if no ports have rotations!')
|
||||||
rotations = numpy.full_like(has_rotation, set_rotation, dtype=float)
|
rotations = numpy.full_like(has_rotation, set_rotation, dtype=float)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue