Add missing f for f-strings
This commit is contained in:
parent
7f927c46b3
commit
41d670eef3
@ -111,9 +111,9 @@ def ell(
|
|||||||
|
|
||||||
is_horizontal = numpy.isclose(rotations[0] % pi, 0)
|
is_horizontal = numpy.isclose(rotations[0] % pi, 0)
|
||||||
if bound_type in ('ymin', 'ymax') and is_horizontal:
|
if bound_type in ('ymin', 'ymax') and is_horizontal:
|
||||||
raise BuildError('Asked for {bound_type} position but ports are pointing along the x-axis!')
|
raise BuildError(f'Asked for {bound_type} position but ports are pointing along the x-axis!')
|
||||||
elif bound_type in ('xmin', 'xmax') and not is_horizontal:
|
elif bound_type in ('xmin', 'xmax') and not is_horizontal:
|
||||||
raise BuildError('Asked for {bound_type} position but ports are pointing along the y-axis!')
|
raise BuildError(f'Asked for {bound_type} position but ports are pointing along the y-axis!')
|
||||||
|
|
||||||
direction = rotations[0] + pi # direction we want to travel in (+pi relative to port)
|
direction = rotations[0] + pi # direction we want to travel in (+pi relative to port)
|
||||||
rot_matrix = rotation_matrix_2d(-direction)
|
rot_matrix = rotation_matrix_2d(-direction)
|
||||||
|
Loading…
Reference in New Issue
Block a user