Skip to content

MATLAB: arguments blocks + auto-detect installed sonpipe by absolute path - #4

Merged
stevevanhooser merged 1 commit into
mainfrom
claude/smrx-cli-matlab-bridge-acxw21
Jul 19, 2026
Merged

stevevanhooser merged 1 commit into
mainfrom
claude/smrx-cli-matlab-bridge-acxw21

Conversation

@stevevanhooser

Copy link
Copy Markdown
Contributor

Summary

Two improvements to the +sonpipe MATLAB client, both prompted by real usage:

  1. arguments blocks on all +sonpipe functions (read_SOMSMR_header, read_SOMSMR_sampleinterval, read_SOMSMR_datafile, channelinfo, channels, runcmd, executable, and the private invoke_binary/invoke_text). This makes each function's input signature visible in the MATLAB editor and validates inputs (mustBeTextScalar, mustBeNumeric), so the package is easier to navigate.

  2. Auto-detection of an installed sonpipe by absolute path. executable() now probes the default install locations — ~/.local/bin/sonpipe, the install.sh venv (~/.local/share/sonpipe/venv/bin/sonpipe), and the Windows %LOCALAPPDATA%\sonpipe\venv\Scripts\sonpipe.exe — when sonpipe is not found on PATH. A MATLAB GUI on macOS/Windows does not inherit the interactive shell PATH, so an otherwise-working ~/.local/bin install was invisible to auto-detection. Each probed path is existence-checked and quoted before use.

Notes

  • executable() keeps its query-vs-set semantics via nargin (the arguments default does not change the reset-with-'' behavior the tests rely on).
  • No behavior change to the CLI itself; MATLAB-only.

🤖 Generated with Claude Code


Generated by Claude Code

…path

Add arguments blocks to the +sonpipe MATLAB functions (read_SOMSMR_*,
channelinfo, channels, runcmd, executable, private invoke_*) so the input
signature is visible in the editor and inputs are validated.

executable() now also probes the default install locations by absolute path
(~/.local/bin/sonpipe, the install.sh venv, and the Windows %LOCALAPPDATA%
venv) when 'sonpipe' is not on PATH. A MATLAB GUI on macOS/Windows does not
inherit the interactive shell PATH, so an otherwise-working ~/.local/bin
install was invisible to auto-detection; probing known paths fixes that.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VTQEJGfiSxeVG1J5GSmaTy
@stevevanhooser
stevevanhooser merged commit 5c18e58 into main Jul 19, 2026
9 checks passed
@stevevanhooser
stevevanhooser deleted the claude/smrx-cli-matlab-bridge-acxw21 branch July 19, 2026 15:26
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.

1 participant