File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments