simonsobs / simonsobs/ocs

Pacemaker features

Open
#359 0 comments 0 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.