Skip to content

Report offending input in waveforms.py error messages - #1094

Merged
a-corni merged 1 commit into
pasqal-io:developfrom
jaewonyun1234:improve-waveform-error-messages
Aug 12, 2026
Merged

Report offending input in waveforms.py error messages#1094
a-corni merged 1 commit into
pasqal-io:developfrom
jaewonyun1234:improve-waveform-error-messages

Conversation

@jaewonyun1234

Copy link
Copy Markdown
Contributor

Adds the offending input to the error messages in waveforms.py that
previously stated only the rule, following the pattern from #1093.

The existing message text is left intact and the new details appended, so
the match= assertions in tests/test_waveforms.py keep passing without
modification.

BlackmanWaveform.from_max_val and KaiserWaveform.from_max_val shared an
identical message; both now report the class via cls.__name__, so the two
can be told apart.

Partially addresses #1057.

Adds the failing input to the 7 validation errors in waveforms.py that previously stated only the rule. Existing message text is kept intact and the details appended, so the match= assertions in tests/test_waveforms.py continue to pass. Partially addresses pasqal-io#1057.
@jaewonyun1234

Copy link
Copy Markdown
Contributor Author

@a-corni ready for review whenever you have time — thanks for the guidance on the issue.

@a-corni a-corni left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @jaewonyun1234 for your work! It looks good to me, I just have one improvement to suggest.

Comment thread pulser-core/pulser/waveforms.py

@a-corni a-corni left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Thanks for the great work @jaewonyun1234!

@a-corni
a-corni merged commit 7225340 into pasqal-io:develop Aug 12, 2026
14 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