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

Display option name and option value of failed runs in the Sweeper class' run_sweep method #909

Conversation

jagandecapri
Copy link
Contributor

What are the issues this pull addresses (issue numbers / links)?

Fixes #907

Did you add tests to cover your changes (yes/no)?

No. I'm not sure how to add test cases for this particular case.

Did you update the documentation accordingly (yes/no)?

No.

Did you read the CONTRIBUTING document (yes/no)?

Yes.

Summary

Currently, when a run fails during the execution of Sweeper class' run_sweep method, the warning message, does not tell which option name or option value that failed.

It will be useful to add which option name + option value (key) combination thatdidn't execute properly for reference in case the user wantst to run the sweeperagain for the failed option values

This commit adds the option name and option value that failed to the warning message.

Details and comments

…ass' `run_sweep` method

Fixes qiskit-community#907

Currently, when a run fails during the execution of Sweeper class' run_sweep method, the warning message, does not tell which option name or option value that failed.

It will be useful to add which option name + option value (key) combination thatdidn't execute properly for reference in case the user wantst to run the sweeperagain for the failed option values

This commit adds the option name and option value that failed to the warning message.
Previously, the code changed was too long. This commit breaks the line into multiple lines to keep with the convention of keeping the lines approximately 100 characters.
Copy link
Collaborator

@priti-ashvin-shah-ibm priti-ashvin-shah-ibm left a comment

Choose a reason for hiding this comment

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

Good Idea to add more to the warning message. Thank you for your contribution. Great work.

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.

Display option name and option value of failed runs in the Sweeper class' run_sweep method
2 participants