Skip to content

Commit

Permalink
Fix dataframe assignment
Browse files Browse the repository at this point in the history
  • Loading branch information
EugeneDu-GA committed Sep 27, 2024
1 parent 654690e commit c859fdc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gnssanalysis/gn_io/sp3.py
Original file line number Diff line number Diff line change
Expand Up @@ -835,7 +835,7 @@ def sp3_hlm_trans(a: _pd.DataFrame, b: _pd.DataFrame, epochwise: bool = False) -
"""
if epochwise:
for epoch in b.index.get_level_values("J2000").unique():
b.loc[epoch].iloc[:, :3], hlm = hlm_trans(a.loc[epoch].EST[["X", "Y", "Z"]].values, b.loc[epoch].EST[["X", "Y", "Z"]].values) # Eugene: hlm will be overwritten in the loop
b.loc[epoch, [("EST", "X"), ("EST", "Y"), ("EST", "Z")]], hlm = hlm_trans(a.loc[epoch].EST[["X", "Y", "Z"]].values, b.loc[epoch].EST[["X", "Y", "Z"]].values) # Eugene: hlm will be overwritten in the loop
else:
b.iloc[:, :3], hlm = hlm_trans(a.EST[["X", "Y", "Z"]].values, b.EST[["X", "Y", "Z"]].values)

Expand Down

0 comments on commit c859fdc

Please sign in to comment.