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

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions qiskit_metal/analyses/sweep_and_optimize/sweeper.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,8 +164,9 @@ def iterate_option_sweep(self, args: list, all_dicts: Dict,
template = "An exception of type {0} occurred. Arguments:\n{1!r}"
message = template.format(type(ex).__name__, ex.args)
self.design.logger.warning(
f'For class {self.parent.__class__.__name__}, run() did not execute as expected: {message}'
)
f'For class {self.parent.__class__.__name__}, ',
f'option_name={".".join(option_path)}, key={item}, ',
f'run() did not execute as expected: {message}')

self.populate_all_sweep(all_sweep, item, args[1])

Expand Down