Skip to content

Return CSV data in CLARIOstar StartRead gRPC reply#104

Draft
Alberto024 wants to merge 1 commit intomainfrom
feat/clariostar-return-data
Draft

Return CSV data in CLARIOstar StartRead gRPC reply#104
Alberto024 wants to merge 1 commit intomainfrom
feat/clariostar-return-data

Conversation

@Alberto024
Copy link
Copy Markdown
Collaborator

Summary

  • CLARIOstar StartRead now returns the CSV content from run_protocol() in the ExecuteCommandReply.meta_data field
  • Previously the CSV data was discarded (method returned None)
  • This makes measurement data available to upstream consumers (e.g., webhook integrations in galago-core)

Details

The base_server.py _dispatchCommand method already handles non-None responses correctly — it copies response, meta_data, error_message, and return_reply from the returned object. This change simply returns the reply object instead of None.

Test plan

  • Verify CLARIOstar server imports cleanly
  • Verify StartRead returns CSV data in meta_data.data field when run in simulated mode
  • Verify existing CLARIOstar functionality is unaffected (OpenCarrier, CloseCarrier, SetTemperature)

🤖 Generated with Claude Code

The StartRead method now returns the CSV content from run_protocol()
in the ExecuteCommandReply meta_data field, making measurement data
available to upstream consumers like webhook integrations.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@Alberto024 Alberto024 marked this pull request as draft March 30, 2026 22:53
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