Skip to content

Commit

Permalink
modify interval_list_name call
Browse files Browse the repository at this point in the history
  • Loading branch information
dpeg22 committed Jul 27, 2023
1 parent 55e5261 commit c228b82
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/spyglass/position/v1/position_dlc_pose_estimation.py
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,13 @@ def make(self, key):
).strftime("%Y-%m-%d %H:%M:%S")

logger.logger.info("getting raw position")
interval_list_name = f"pos {key['epoch']-1} valid times"
interval_list_name = (
key["interval_list_name"]
if "interval_list_name" in key
else f"pos {key['epoch']-1} valid times"
)
if "interval_list_name" in key:
del key["interval_list_name"]
spatial_series = (
RawPosition()
& {**key, "interval_list_name": interval_list_name}
Expand Down

0 comments on commit c228b82

Please sign in to comment.