Skip to content

Commit

Permalink
Fix fstring weirdness
Browse files Browse the repository at this point in the history
  • Loading branch information
janbridley committed Nov 4, 2024
1 parent 34e2d5f commit 21bc88f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions freud/order.py
Original file line number Diff line number Diff line change
Expand Up @@ -609,10 +609,9 @@ def plot(self, ax=None):
if not isinstance(ls, list):
ls = [ls]

weighted_label = "'" if self.weighted else ""
legend_labels = [
(
rf"${'w' if self.wl else 'q'}{weighted_label}_"
f"${'w' if self.wl else 'q'}{'\'' if self.weighted else ''}_"
f"{{{sph_l}{',ave' if self.average else ''}}}$"
)
for sph_l in ls
Expand Down

0 comments on commit 21bc88f

Please sign in to comment.