Skip to content

Commit 82a847c

Browse files
committed
change .loc method to .xs after pandas update
1 parent a09db91 commit 82a847c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gnsspy/position/position.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ def spp(station, orbit, system="G", cut_off=7.0):
4747
position_list = []
4848
while True:
4949
epoch_step = epoch_start + epoch_interval
50-
gnss_temp = gnss.loc[(slice(epoch_start,epoch_step))].copy()
50+
gnss_temp = gnss.xs((slice(epoch_start,epoch_step))).copy()
5151
for iter in range(6):
5252
distance = _distance_euclidean(approx_position[0],approx_position[1],approx_position[2], gnss_temp.X_Reception, gnss_temp.Y_Reception, gnss_temp.Z_Reception)
5353
gnss_temp["Distance"] = distance + _sagnac(approx_position[0],approx_position[1],approx_position[2], gnss_temp.X_Reception, gnss_temp.Y_Reception, gnss_temp.Z_Reception)

0 commit comments

Comments
 (0)