Skip to content

Commit

Permalink
fix(part_mixin): expression with double quotes inside double quotes w…
Browse files Browse the repository at this point in the history
…as throwing an error for Python 3.10
  • Loading branch information
mtrocadomoreira committed Nov 13, 2024
1 parent 27020e3 commit 65c7549
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ozzy/part_mixin.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def _define_q_units(raw_sdims, rvar_attrs: dict | None):
for ustr in ustrings:
extra += rf"/ {ustr}"
if rvar_attrs is not None:
extra += rf"/ {rvar_attrs["units"].strip("$")}"
extra += rf"/ {rvar_attrs['units'].strip('$')}"
units_str = rf"$Q_w {extra}$"
else:
units_str = "a.u."
Expand Down

0 comments on commit 65c7549

Please sign in to comment.