Skip to content

Fix associator codec label and collector startup without a tty - #178

Merged
Osayi-ANL merged 2 commits into
mainfrom
fix/associator-codec-collector-dc
Oct 9, 2026
Merged

Osayi-ANL merged 2 commits into
mainfrom
fix/associator-codec-collector-dc

Conversation

@pecomyint

@pecomyint pecomyint commented Sep 30, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

  • Associator: assigning pvObject['codec']['name'] edits a copy and is lost, so compressed frames went out labelled uncompressed; assign the whole field.
  • Collector: pass -dc like the other consumers — under Popen pvapy's curses screen aborts with setupterm: could not find terminal.

Test plan

  • pytest tests/unit passes; ruff check src/dashpva/ clean
  • Start the collector from Workflow; it no longer exits at startup
  • Associator output decodes with lz4 in the Area Detector

🤖 Generated with Claude Code

…ed codec field assignment was silently lost

fix: collector passes -dc so pvapy's curses screen does not abort it without a tty
@pecomyint
pecomyint requested a review from Osayi-ANL September 30, 2026 22:15

@Osayi-ANL Osayi-ANL left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. Ruff passed; 815 unit tests passed. One local EPICS/ophyd test segfaulted, but CI is green, so it is non-blocking.

@Osayi-ANL

Copy link
Copy Markdown
Collaborator

The non-blocking local crash occurred in tests/unit/test_blop_adapter.py::test_moves_and_clamps during EPICS/ophyd attach_context.

@Osayi-ANL
Osayi-ANL merged commit 4d274c1 into main Oct 9, 2026
3 checks passed
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