Add missing f for f-strings

This commit is contained in:
Jan Petykiewicz 2023-11-12 02:29:52 -08:00
parent 7f927c46b3
commit 41d670eef3

View File

@ -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)