Skip to content

Commit

Permalink
fix test __getitem__ warning
Browse files Browse the repository at this point in the history
  • Loading branch information
fsoubelet committed Nov 25, 2024
1 parent 24ce234 commit 5680d64
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/unit/test_coupling.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ def test_closest_tune_approach(
df_twiss[F1001] = df_cmatrix[F1001] # ignoring F1010 in this test as it is bigger than F1001

cta_df = closest_tune_approach(df_twiss, method=cta_method) # only one column
cminus = cta_df.mean().abs()[0]
cminus = cta_df.mean().abs().iloc[0]
relative_error = _relative_error(cminus, _coupling_bump_teapot_cta)

assert relative_error <= max_relative_error_to_teapot
Expand Down Expand Up @@ -212,4 +212,4 @@ def _coupling_bump_teapot_cta() -> float:
df_twiss[F1001] = df_cmatrix[F1001] # ignoring F1010 in this test as it is bigger than F1001

cta_df = closest_tune_approach(df_twiss, method="teapot") # only one column
return cta_df.mean().abs()[0] # this is the cminus
return cta_df.mean().abs().iloc[0] # this is the cminus

0 comments on commit 5680d64

Please sign in to comment.