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

Fix module name retrieval in backend.plugins.remove_duplicates(), plugin tests #5959

Merged
merged 9 commits into from
Nov 15, 2021
4 changes: 2 additions & 2 deletions xarray/backends/plugins.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ def remove_duplicates(entrypoints):
unique_entrypoints.append(matches[0])
matches_len = len(matches)
if matches_len > 1:
selected_module_name = matches[0].module_name
all_module_names = [e.module_name for e in matches]
selected_module_name = matches[0].name
all_module_names = [e.name for e in matches]
kmuehlbauer marked this conversation as resolved.
Show resolved Hide resolved
warnings.warn(
f"Found {matches_len} entrypoints for the engine name {name}:"
f"\n {all_module_names}.\n It will be used: {selected_module_name}.",
kmuehlbauer marked this conversation as resolved.
Show resolved Hide resolved
Expand Down