From c3f4d38b0d23a592369a7f0465969cecd23343f4 Mon Sep 17 00:00:00 2001 From: janbridley Date: Tue, 5 Nov 2024 09:33:10 -0500 Subject: [PATCH] Fix fstring again --- freud/order.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/freud/order.py b/freud/order.py index 06f13dd13..23866dec0 100644 --- a/freud/order.py +++ b/freud/order.py @@ -609,9 +609,10 @@ def plot(self, ax=None): if not isinstance(ls, list): ls = [ls] + weighted_str = "'" if self.weighted else "" legend_labels = [ ( - f'${"w" if self.wl else "q"}{"'" if self.weighted else ""}_' + f"${'w' if self.wl else 'q'}{weighted_str}_" f"{{{sph_l}{',ave' if self.average else ''}}}$" ) for sph_l in ls