Skip to content

Waveform: scannable parameters, to_dict and from_dict - #3

Merged
seb5g merged 1 commit into
5.3.xfrom
feat/waveform-scannable
Nov 23, 2026
Merged

seb5g merged 1 commit into
5.3.xfrom
feat/waveform-scannable

Conversation

@seb5g

@seb5g seb5g commented Nov 23, 2026

Copy link
Copy Markdown
Contributor

The factory now tells which parameters a scan can drive, and a waveform can be saved as a dictionary.

  • waveform_field(..., scannable=None): by default the numbers (float, int) are scannable, not the choices, flags or texts. A non-numeric field declared scannable raises ValueError.
  • Waveform.scannable_parameters() lists the names.
  • Waveform.to_dict() and Waveform.from_dict() (the class is found by its name).
  • Tests for the three.

Next: the extension (virtual actuator built from scannable_parameters).


Generated by Claude Code

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RKuN81tBxMB6iaf8J6KLJL
@seb5g
seb5g merged commit 15d1342 into 5.3.x Nov 23, 2026
7 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