Skip to content

Fix live grab of BSCamera/BSPhotodiode in a shared thread - #32

Merged
seb5g merged 2 commits into
5.3.xfrom
fix/bs-live-shared-thread
Nov 30, 2026
Merged

seb5g merged 2 commits into
5.3.xfrom
fix/bs-live-shared-thread

Conversation

@seb5g

@seb5g seb5g commented Nov 30, 2026

Copy link
Copy Markdown
Contributor

BSCamera (and BSPhotodiode, which inherits it) ran a blocking while self.live loop in grab_data. Since PyMoDAQ 5 a master and its slaves share one QThread, the loops nest through processEvents and only the last started detector keeps emitting (repro: camera 1 frame, photodiode 38 frames in 4 s). The live acquisition is now driven by a QTimer, stopped in stop(). Adds a regression test (fails before, passes after); full suite passes.


Generated by Claude Code

…d thread

The live grab ran a blocking while loop (with processEvents) in grab_data. A master
and its slaves share one thread, so the nested loops left only the last started
detector emitting. Drive the live acquisition with a QTimer instead.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RKuN7zkr9rKwdxMzKPHQhE
@coderabbitai

coderabbitai Bot commented Nov 30, 2026 •

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 6fade990-a9c1-48b0-aa20-95282180a05a

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RKuN7zkr9rKwdxMzKPHQhE
@seb5g
seb5g merged commit cba13f9 into 5.3.x Nov 30, 2026
8 checks passed
@seb5g
seb5g deleted the fix/bs-live-shared-thread branch November 30, 2026 17:00
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.

2 participants