ChronaxisUser manual中文
On this pageshift_times_referenceSource locations

chronaxis.shift_times_reference

Import this object from chronaxis. This page covers its directly public members and necessary construction/context protocols. See the Chinese implementation reference for internals. Return to the public API index. Check required parameters, defaults, returns, and exceptions before calling.

shift_times_reference

Apply an offset independently to each coordinate as an integer reference for array kernels.

python
shift_times_reference(times: Sequence[int], offset_ns: int) -> tuple[int, ...]
Name Type Required Default Purpose, choices, and effect
times Sequence[int] Yes No default Positional or keyword. Coordinates already expressed in nanoseconds; sorting is not required.
offset_ns int Yes No default Positional or keyword. Valid int64 offset.

Returns a new tuple[int, ...]; empty input returns an empty tuple. Raises TypeError or TimeOverflowError for invalid argument types or any out-of-range input/result.

No side effects: it does not import or call NumPy implementations or modify the input.

Source locations

Chronaxis user manual · Offline edition