Skip to content

Commit 5680d64

Browse files
committed
fix test __getitem__ warning
1 parent 24ce234 commit 5680d64

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/unit/test_coupling.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ def test_closest_tune_approach(
114114
df_twiss[F1001] = df_cmatrix[F1001] # ignoring F1010 in this test as it is bigger than F1001
115115

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

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

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

0 commit comments

Comments
 (0)