[PortList] actually raise the error
This commit is contained in:
parent
da20922224
commit
6c42049b23
1 changed files with 1 additions and 1 deletions
|
|
@ -630,7 +630,7 @@ class PortList(metaclass=ABCMeta):
|
||||||
rotations = numpy.mod(s_rotations - o_rotations - pi, 2 * pi)
|
rotations = numpy.mod(s_rotations - o_rotations - pi, 2 * pi)
|
||||||
if not has_rot.any():
|
if not has_rot.any():
|
||||||
if set_rotation is None:
|
if set_rotation is None:
|
||||||
PortError('Must provide set_rotation if rotation is indeterminate')
|
raise PortError('Must provide set_rotation if rotation is indeterminate')
|
||||||
rotations[:] = set_rotation
|
rotations[:] = set_rotation
|
||||||
else:
|
else:
|
||||||
rotations[~has_rot] = rotations[has_rot][0]
|
rotations[~has_rot] = rotations[has_rot][0]
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue