Add missing f for f-strings

master
Jan Petykiewicz 6 months ago
parent 7f927c46b3
commit 41d670eef3

@ -111,9 +111,9 @@ def ell(
is_horizontal = numpy.isclose(rotations[0] % pi, 0)
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:
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)
rot_matrix = rotation_matrix_2d(-direction)

Loading…
Cancel
Save