Skip to content

Commit

Permalink
Fix fstring again
Browse files Browse the repository at this point in the history
  • Loading branch information
janbridley committed Nov 5, 2024
1 parent ca7aac5 commit c3f4d38
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion freud/order.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c3f4d38

Please sign in to comment.