Skip to content

Commit

Permalink
fix compatibility bugs for Python3.12
Browse files Browse the repository at this point in the history
  • Loading branch information
louis-richard committed Mar 9, 2024
1 parent 6f95fdb commit 1a1b677
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ jobs:
pip install keyrings.alt
pytest --cov=./ --cov-report=xml
- name: Check that release process is not broken
if: matrix.python-version == '3.11' && matrix.os == 'ubuntu-latest'
if: matrix.python-version == '3.12' && matrix.os == 'ubuntu-latest'
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.TESTPYPI_API_TOKEN }}
Expand Down
16 changes: 8 additions & 8 deletions pyrfu/pyrf/mva_gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -231,21 +231,21 @@ def update_fig(self, b_xyz_clip):
txt.set_visible(False)

val_textstring = (
f"$\\lambda_1$ = {np.round(lamb_clip[0] ,2)}\n"
f"$\\lambda_2$ = {np.round(lamb_clip[1] ,2)}\n"
f"$\\lambda_3$ = {np.round(lamb_clip[2] ,2)}"
f"$\\lambda_1$ = {np.round(lamb_clip[0], 2)}\n"
f"$\\lambda_2$ = {np.round(lamb_clip[1], 2)}\n"
f"$\\lambda_3$ = {np.round(lamb_clip[2], 2)}"
)
ratio_textstring = (
f"\n"
f"$\\lambda_1 / \\lambda_2$ ="
f" {np.round(lamb_clip[0 ] /lamb_clip[1], 1)}\n"
f"$\\lambda_2 / \\lambda_3$ = {np.round(lamb_clip[1 ] /lamb_clip[2], 1)}"
f" {np.round(lamb_clip[0] / lamb_clip[1], 1)}\n"
f"$\\lambda_2 / \\lambda_3$ = {np.round(lamb_clip[1] / lamb_clip[2], 1)}"
)
vec_textstring = (
f"\n"
f"$x_1$ = {np.round(v1 ,2)}\n"
f"$x_2$ = {np.round(v2 ,2)}\n"
f"$x_3$ = {np.round(v3 ,2)}"
f"$x_1$ = {np.round(v1, 2)}\n"
f"$x_2$ = {np.round(v2, 2)}\n"
f"$x_3$ = {np.round(v3, 2)}"
)
fontsize = "large"
ax5.text(
Expand Down

0 comments on commit 1a1b677

Please sign in to comment.