Skip to content

Commit

Permalink
Fix string SyntaxWarnings raised in Python 3.12
Browse files Browse the repository at this point in the history
  • Loading branch information
peterdsharpe committed Apr 8, 2024
1 parent 9d1b21d commit 824968b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions aerosandbox/aerodynamics/aero_2D/xfoil.py
Original file line number Diff line number Diff line change
Expand Up @@ -476,7 +476,7 @@ def str_to_float(s: str) -> float:
bl_datas.append(
pd.read_csv(
dump_filename,
sep="\s+",
sep=r"\s+",
names=["s", "x", "y", "ue/vinf", "dstar", "theta", "cf", "H"],
skiprows=1,
)
Expand All @@ -496,7 +496,7 @@ def str_to_float(s: str) -> float:
bl_datas.append(
pd.read_csv(
dump_filename,
sep="\s+",
sep=r"\s+",
names=["s", "x", "y", "ue/vinf", "dstar", "theta", "cf", "H"],
skiprows=1,
)
Expand Down
2 changes: 1 addition & 1 deletion aerosandbox/atmosphere/atmosphere.py
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ def knudsen(self, length):
label=label,
alpha=alpha,
)
ax[1].set_xlabel("Temperature [$^\circ$C]")
ax[1].set_xlabel("Temperature [$^\\circ$C]")
ax[1].set_xlim(right=20)

ax[2].semilogx(
Expand Down
2 changes: 1 addition & 1 deletion aerosandbox/tools/string_formatting.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ def wrap_text_ignoring_mathtext(
text: str,
width: int = 70,
) -> str:
"""
r"""
Reformat the single paragraph in 'text' to fit in lines of no more
than 'width' columns, and return a new string containing the entire
wrapped paragraph. Tabs are expanded and other
Expand Down

0 comments on commit 824968b

Please sign in to comment.