Skip to content

Commit b98f952

Browse files
committed
fix deprecated integer access of Series
1 parent 432b27d commit b98f952

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pylhc/calibration/beta.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ def err_function(x, popt, pcov):
6161
beta_phase_err = beta_phase_tfs.reindex(bpms)[f"{ERR}{BETA}{plane}"]
6262

6363
# Get the rough IP position and beta star for the initial values
64-
ip_position = (positions[-1] - positions[0]) / 2
64+
ip_position = (positions.iloc[-1] - positions.iloc[0]) / 2
6565
initial_values = (BETA_STAR_ESTIMATION, ip_position)
6666

6767
# Get the curve fit for the expected parabola

0 commit comments

Comments
 (0)