Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug Fix: error message in switch_device #580

Merged
merged 2 commits into from
Sep 14, 2023

Conversation

a-corni
Copy link
Collaborator

@a-corni a-corni commented Sep 14, 2023

In switch_device, resets to an empty string the ch_match_err and strict_error_message if they were generated while trying to match the current channel with the channels of the new device and a match has been found.
If no match was found for a channel, the ch_match_err and the strict_error_message are still kept and are raised at the end of the for loop.

Closes #579

@a-corni a-corni requested a review from HGSilveri September 14, 2023 13:50
Copy link
Collaborator

@HGSilveri HGSilveri left a comment

Choose a reason for hiding this comment

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

I only have a handful of nits, LGTM!

pulser-core/pulser/sequence/sequence.py Show resolved Hide resolved
pulser-core/pulser/sequence/sequence.py Show resolved Hide resolved
tests/test_sequence.py Outdated Show resolved Hide resolved
tests/test_sequence.py Show resolved Hide resolved
@a-corni
Copy link
Collaborator Author

a-corni commented Sep 14, 2023

I have modified the comments, but RTD seems to be stuck...

@HGSilveri
Copy link
Collaborator

I have modified the comments, but RTD seems to be stuck...

Ah damn, that happened to me before. I had to make a useless change to have a new commit to push a trigger the build. But tbh these changes have no effect on the docs, so just go ahead and merge

@a-corni a-corni merged commit c4693ed into develop Sep 14, 2023
6 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.

Fix error messages of switch device for reused channels
2 participants