Pacemaker features
Open
Nobody has claimed this yet.
enhancement
- Dominant language
- Python
- Stars
- 19
- Forks
- 7
- PR merge metrics
- No merged PRs in 30d
Description
Two things I wanted to do with Pacemaker class, and couldn't:
- Use quantize with a period that was longer than 1s. E.g. freq=0.1 should have samples occur at timestamps that are 0 mod 10.
- Check & update the internal state, without sleeping. A check() function that returns False if it's not time to update; and returns True and updates self.next_sample if it is time to update.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the Pacemaker class and reading its current quantize behavior and internal next_sample state. Verify how periods longer than one second should align timestamps, then define and test check() so it reports whether an update is due without sleeping and advances next_sample only when it updates.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- backend
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100