Skip to content

Commit

Permalink
fix ttb bug (#411)
Browse files Browse the repository at this point in the history
  • Loading branch information
ordabayevy authored Dec 16, 2022
1 parent ea86d8c commit 05bb6e8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tapqir/imscroll/glimpse_reader.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,11 +101,11 @@ def __init__(self, c=0, **kwargs):

# calculate the cumulative sum of dx and dy relative to the aoiinfo frame
aoiinfo_frame = int(aoi_df["ontarget"].at[1, "frame"])
drift_df.loc[aoiinfo_frame + 1 :] = (
drift_df.loc[aoiinfo_frame + 1 :].cumsum(axis=0).values
drift_df.loc[aoiinfo_frame + 1 :, ["dx", "dy"]] = (
drift_df.loc[aoiinfo_frame + 1 :, ["dx", "dy"]].cumsum(axis=0).values
)
drift_df.loc[aoiinfo_frame - 1 :: -1] = (
(-drift_df.loc[aoiinfo_frame : drift_df.index[1] : -1])
drift_df.loc[aoiinfo_frame - 1 :: -1, ["dx", "dy"]] = (
(-drift_df.loc[aoiinfo_frame : drift_df.index[1] : -1, ["dx", "dy"]])
.cumsum(axis=0)
.values
)
Expand Down

0 comments on commit 05bb6e8

Please sign in to comment.