simonsobs / simonsobs/socs

HWP-PMX can fail to read value and crash

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

Nobody has claimed this yet.

bug
Dominant language
Python
Stars
17
Forks
20
Avg merge
1h 22m
Merged PRs (30d)
2

Description

HWP-PMX agents can fail to read value and crash. This was observed when site network was unstable. This can be improved.
https://github.com/simonsobs/socs/blob/91a4306d71e2e3b616c63d18eb6c361855ca53e4/socs/agents/hwp_pmx/drivers/PMX_ethernet.py#L105

2026-01-30T22:22:49+0000 main:0 CRASH: [Failure instance: Traceback: <class 'ValueError'>: could not convert string to float: '+1.16650E+01\n+2.80500E-01'
2026-01-30T22:22:19+0000 Failed to send command to PMX. Check network connection. Retrying in 30 seconds...

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 in socs/agents/hwp_pmx/drivers/PMX_ethernet.py at line 105, where the PMX value is parsed, and review how the failed network response reaches that conversion. Reproduce or inspect the shown multiline response and confirm the agent no longer crashes when the network is unstable; the relevant behavior should be covered by a test if the repository provides one.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
backend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.