Skip to content

docs: state that PipeDecoder timestamps are seconds - #203

Open
xuanku-001 wants to merge 1 commit into
junzis:mainfrom
xuanku-001:docs/timestamp-units
Open

xuanku-001 wants to merge 1 commit into
junzis:mainfrom
xuanku-001:docs/timestamp-units

Conversation

@xuanku-001

Copy link
Copy Markdown

Summary

PipeDecoder time parameters (pair_window, eviction_ttl, eviction_interval) are already documented in seconds, but the timestamp passed to decode(msg, timestamp=...) and the README examples never stated the unit. Callers passing milliseconds break CPR pair matching and cache expiry silently (reported in #201).

Changes

  • src/pyModeS/_pipe.py: document the timestamp unit in PipeDecoder.decode() docstring (seconds on a consistent clock base — same base as pair window / TTLs)
  • README.md: annotate the timestamp examples in both the batch-decode and streaming sections

Validation

  • Docs-only change; py_compile passes

Closes #201

PipeDecoder time parameters (pair_window, eviction_ttl, eviction_interval)
are already documented in seconds, but the timestamp passed to
decode(msg, timestamp=...) and the README examples never stated the unit.
Callers passing milliseconds break CPR pair matching and cache expiry
silently (see issue junzis#201).

- _pipe.py: document timestamp unit in PipeDecoder.decode docstring
- README.md: annotate the timestamp examples (batch + streaming)

Closes junzis#201
@xuanku-001

Copy link
Copy Markdown
Author

AI-assistance disclosure (should have been in the PR body — apologizing for the omission): this contribution was produced with AI assistance — an agent ("Da Kang") running on an LLM inside a local agent harness with deterministic validation (source-read patch generation, py_compile checks). Happy to answer any questions about the process.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

PipeHandler timestamp units not specified but is seconds

1 participant