WaveBench v0.4.1
English
WaveBench v0.4.1 is a small hardening release after v0.4.0.
Added
- Added
wavebench run verify --plan <plan.toml>for read-only run-plan preflight checks.- It parses the plan, finds referenced instruments, and queries
*IDN?for scope/source/power as needed. - It does not change output state or front-panel settings.
- It parses the plan, finds referenced instruments, and queries
- Added PyVISA transport support for
query_float_list,query_bin_block, andquery_opcso the transport abstraction is more complete. - Hardened socket query handling for instruments that leave an empty line before the real response, verified on DG4202 status reads.
- Added tests for:
- all-zero arbitrary waveform normalization,
- malformed DP800 response parsing,
- PyVISA transport capability helpers,
- empty socket-response recovery,
- run-plan preflight instrument selection.
Changed
wavebench.__version__now reads package metadata instead of carrying a stale hard-coded value.- Project version bumped to
0.4.1. - README / English README now mention
run verify.
Validation
158 passedwithpython -m pytest -q.- Live Excalibur-wsl check passed against RTM2032 + DG4202:
run verifysucceeded, DG4202 CH2 status parsed correctly, and RTM2032 CH1 captured an existing ~1 kHz / 2.04 Vpp signal with quality statusok. git diff --checkpassed.
中文
WaveBench v0.4.1 是 v0.4.0 之后的小型加固版本。
新增
- 新增
wavebench run verify --plan <plan.toml>,用于 run plan 执行前的只读预检。- 它会解析 plan,找出涉及的 scope/source/power,并按需查询
*IDN?。 - 它不会修改输出状态,也不会改前面板设置。
- 它会解析 plan,找出涉及的 scope/source/power,并按需查询
- 补齐 PyVISA 传输层的
query_float_list、query_bin_block、query_opc,让传输抽象更完整。 - 加固 socket 查询处理,兼容仪器在真实响应前残留空行的情况;已用 DG4202 状态读取验证。
- 补充测试:
- 任意波形全零输入归一化;
- DP800 异常响应解析;
- PyVISA 传输能力辅助方法;
- socket 空响应恢复;
- run plan 预检的仪器选择逻辑。
变更
wavebench.__version__改为读取 package metadata,避免继续携带过时硬编码版本。- 项目版本升至
0.4.1。 - README / 英文 README 增加
run verify说明。
验证
python -m pytest -q:158 passed。- Excalibur-wsl 实物检查通过:RTM2032 + DG4202 的
run verify成功,DG4202 CH2 状态解析正确,RTM2032 CH1 对现有约 1 kHz / 2.04 Vpp 信号的采集质量为ok。 git diff --check通过。