Skip to content

Commit 2b9db88

Browse files
committed
Update the duplicated code in recording_stream.py
1 parent cf255cc commit 2b9db88

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

rerun_py/rerun_sdk/rerun/recording_stream.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -703,7 +703,7 @@ def notebook_show(
703703
)
704704

705705
@overload
706-
def set_index(self, timeline: str, *, sequence: int) -> None: ...
706+
def set_index(self, timeline: str, *, seq: int) -> None: ...
707707

708708
@overload
709709
def set_index(self, timeline: str, *, timedelta: int | float | timedelta | np.timedelta64) -> None: ...
@@ -715,7 +715,7 @@ def set_index(
715715
self,
716716
timeline: str,
717717
*,
718-
sequence: int | None = None,
718+
seq: int | None = None,
719719
timedelta: int | float | timedelta | np.timedelta64 | None = None,
720720
datetime: int | float | datetime | np.datetime64 | None = None,
721721
) -> None:
@@ -725,11 +725,11 @@ def set_index(
725725
Used for all subsequent logging on the same thread, until the next call to
726726
[`rerun.set_index`][], [`rerun.reset_time`][] or [`rerun.disable_timeline`][].
727727
728-
For example: `set_index("frame_nr", sequence=frame_nr)`.
728+
For example: `set_index("frame_nr", seq=frame_nr)`.
729729
730730
There is no requirement of monotonicity. You can move the time backwards if you like.
731731
732-
You are expected to set exactly ONE of the arguments `sequence`, `timedelta`, or `datetime`.
732+
You are expected to set exactly ONE of the arguments `seq`, `timedelta`, or `datetime`.
733733
You may NOT change the type of a timeline, so if you use `timedelta` for a specific timeline,
734734
you must only use `timedelta` for that timeline going forward.
735735
@@ -739,7 +739,7 @@ def set_index(
739739
----------
740740
timeline : str
741741
The name of the timeline to set the time for.
742-
sequence:
742+
seq:
743743
Used for sequential indices, like `frame_nr`.
744744
Must be an integer.
745745
timedelta:
@@ -759,7 +759,7 @@ def set_index(
759759
set_index( # type: ignore[call-overload]
760760
timeline=timeline,
761761
timedelta=timedelta,
762-
sequence=sequence,
762+
seq=seq,
763763
datetime=datetime,
764764
recording=self,
765765
)

0 commit comments

Comments
 (0)