tdseries
Immutable pytree frames of tensors with named, indexed dimensions, where time is a first-class dimension stored in exact int64 ticks (nanoseconds).
Built for bundling media signals with co-recorded telemetry and the static
geometry that shares their non-time dimensions — e.g. multichannel audio
(mic, time) together with microphone positions (mic, 3), rotor speeds
(rotor, time) together with rotor positions (rotor, 3):
import tdseries as td
frame = td.Frame({
"audio": td.uniform(audio_8xT, sr=44100, dims=("mic", "time")),
"mic_pos": td.wrap(pos_8x3, dims=("mic", None)),
"rps": td.events(stamps, rps_4xM, dims=("rotor", "time")),
"rotor_pos": td.wrap(rpos_4x3, dims=("rotor", None)),
"vad": td.spans(starts, ends),
"recording_id": "FLY124",
})
sub = frame.slice["mic", 0] # audio -> (T,), mic_pos -> (3,): same mic
clip = frame.time[1.0:4.5] # seconds; all temporal leaves cut exactly
raw = frame.ticks[a:b] # exact int64 tick window
rps = frame["rps"] # self-contained absolute-time Series
The model
A dimension is a name plus a domain; every tensor axis carrying the name has an index mapping positions into that domain. Slices are expressed in domain coordinates and translated per-tensor — which is how tensors of different lengths share one dimension:
| Index | Domain | Example |
|---|---|---|
RangeIndex (default) |
positions | mic, rotor |
LabelIndex |
hashable labels | mic serial numbers |
GridIndex |
int64 ticks, uniform grid + sub-sample phase | audio |
StampIndex |
int64 ticks, sorted point events | RPS, IMU |
SpanIndex |
int64 ticks, half-open intervals with identity tags | VAD |
Time is exact: all anchors and cut points are int64 tick counts, shift is
O(1), and the algebra satisfies, at the sample level and without tolerances,
x.ticks[a:b].concat(x.ticks[b:c]) == x.ticks[a:c]
for any tick cut points — including sub-sample cuts through audio and cuts through the middle of a VAD span (split spans re-merge via identity tags).
Everything is immutable. Extracting an entry from a frame hands back a self-contained series re-anchored to absolute time; the frame is untouched.
See DESIGN.md for the full contract.
Development
nix develop # or: uv sync
uv run pytest
nix develop provides Python + uv and pre-commit hooks (ruff, ruff-format,
pyright). Data leaves may be any Array-API array — numpy, torch, JAX, CuPy, …
— dispatched through array-api-compat;
torch stays optional (uv sync --extra torch). The time/dimension index layer
is numpy-int64 regardless of the payload backend.
Lineage
Extracted from the utils.data module of the harmonic-noise-suppression
research project; the tick/phase arithmetic and the slice/concat/shift
invariants are ported from there, the named-dimension frame model is new.
Metadata
Release files for tdseries 0.2.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| tdseries-0.2.2.tar.gz | 96.0 kB | Without provenance | Details for tdseries-0.2.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| tdseries-0.2.2-py3-none-any.whl | Python 3 | none | any | Details for tdseries-0.2.2-py3-none-any.whl |
Total release size: 121.8 kB
Release files / tdseries-0.2.2.tar.gz
| Download URL | tdseries-0.2.2.tar.gz |
|---|---|
| Size | 96.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b91313f619842f5c598e984b09de19834deac0a44b33ec7254b0c82e82cee6e2
|
|
BLAKE2b-256 checksum How to use checksums |
63eabff1e5eb3d1dc46f9c9beeafff90a7c243d206404137b2ea2fbdb9380000
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.12.13 {"installer":{"name":"uv","version":"0.12.13","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / tdseries-0.2.2-py3-none-any.whl
| Download URL | tdseries-0.2.2-py3-none-any.whl |
|---|---|
| Size | 25.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7d13f99fb1d371e77de041303f39d187a04be5e0442f2418909f8def8aae01a3
|
|
BLAKE2b-256 checksum How to use checksums |
cb13f1230de3938025072df22cd8a3f85a41df96b65abb6bc487416ccf4abaa1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.12.13 {"installer":{"name":"uv","version":"0.12.13","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Security for tdseries 0.2.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.