Skip to content

Commit

Permalink
Use raw strings to avoid invalid escape sequence warning [ci skip]
Browse files Browse the repository at this point in the history
  • Loading branch information
fjclark committed Sep 15, 2024
1 parent 80436ae commit 1c0376a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions a3fe/analyse/plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -389,7 +389,7 @@ def plot_gradient_hists(
label=f"Run {run_nos[j] if run_nos else j + 1}",
)
ax.legend()
ax.set_title(f"$\lambda$ = {gradients_data.lam_vals[i]}")
ax.set_title(rf"$\lambda$ = {gradients_data.lam_vals[i]}")
ax.set_xlabel(r"$\frac{\mathrm{d}h}{\mathrm{d}\lambda}$ / kcal mol$^{-1}$")
ax.set_ylabel("Probability density")
ax.text(
Expand Down Expand Up @@ -470,7 +470,7 @@ def plot_gradient_timeseries(
label=f"Run {run_nos[j] if run_nos else j + 1}",
)
ax.legend()
ax.set_title(f"$\lambda$ = {gradients_data.lam_vals[i]}")
ax.set_title(rf"$\lambda$ = {gradients_data.lam_vals[i]}")
ax.set_xlabel("Time / ns")
ax.set_ylabel(r"$\frac{\mathrm{d}h}{\mathrm{d}\lambda}$ / kcal mol$^{-1}$")
ax.text(
Expand Down Expand Up @@ -1063,7 +1063,7 @@ def plot_rmsds(
group_selection=group_selection,
) # Total simtime should be the same for all sims
ax.legend()
ax.set_title(f"$\lambda$ = {lam_window.lam}")
ax.set_title(rf"$\lambda$ = {lam_window.lam}")
ax.set_xlabel("Time (ns)")
ax.set_ylabel(r"RMSD ($\AA$)")
for j, rmsd in enumerate(rmsds):
Expand Down
2 changes: 1 addition & 1 deletion a3fe/run/calc_set.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ def run(
runtime_constant: _Optional[float] = None,
run_stages_parallel: bool = False,
) -> None:
"""
r"""
Run all calculations. Analysis is not performed by default. If running adaptively,
cycles of short runs then optimal runtime estimation are performed, where the optimal
runtime is estimated according to
Expand Down

0 comments on commit 1c0376a

Please sign in to comment.