-
Notifications
You must be signed in to change notification settings - Fork 230
Improve assertion error message of SortingAnalyzer job kwargs #4178
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
Changes from 6 commits
9e3840f
836fb3f
979808a
820cbc7
6cfed62
d7b88dd
2132fa9
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -1634,11 +1634,16 @@ def compute(self, input, save=True, extension_params=None, verbose=False, **kwar | |
| return self.compute_one_extension(extension_name=input, save=save, verbose=verbose, **kwargs) | ||
| elif isinstance(input, dict): | ||
| params_, job_kwargs = split_job_kwargs(kwargs) | ||
| assert len(params_) == 0, "Too many arguments for SortingAnalyzer.compute_several_extensions()" | ||
| assert len(params_) == 0, ( | ||
| "Too many arguments for SortingAnalyzer.compute_several_extensions(), " f"they are: {set(params_)}" | ||
| ) | ||
|
Comment on lines
1637
to
1640
|
||
| self.compute_several_extensions(extensions=input, save=save, verbose=verbose, **job_kwargs) | ||
| elif isinstance(input, list): | ||
| params_, job_kwargs = split_job_kwargs(kwargs) | ||
| assert len(params_) == 0, "Too many arguments for SortingAnalyzer.compute_several_extensions()" | ||
| assert len(params_) == 0, ( | ||
| "Too many arguments for SortingAnalyzer.compute_several_extensions(), " | ||
| f"please remove the arguments {set(params_)} from the compute function." | ||
| ) | ||
| extensions = {k: {} for k in input} | ||
| if extension_params is not None: | ||
| for ext_name, ext_params in extension_params.items(): | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.