From 41d670eef34cec81146b09bd910a2b1778db8ceb Mon Sep 17 00:00:00 2001 From: Jan Petykiewicz Date: Sun, 12 Nov 2023 02:29:52 -0800 Subject: [PATCH] Add missing f for f-strings --- masque/builder/utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/masque/builder/utils.py b/masque/builder/utils.py index f23e8d2..51d5e8b 100644 --- a/masque/builder/utils.py +++ b/masque/builder/utils.py @@ -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)