Skip to content

Fix _get_default_engine_netcdf to check for h5netcdf #10557

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

Merged
merged 5 commits into from
Jul 30, 2025

Conversation

scottstanie
Copy link
Contributor

@scottstanie scottstanie commented Jul 21, 2025

The current implementation only checks for scipy and netCDF4. This adds the necessary check for h5netcdf.
Switches to using importlib.util.find_spec, as recommended by https://docs.python.org/3/library/importlib.html#importlib.util.find_spec

The unit test temporarily removes the other two backend options, then checks that h5netcdf is used.

The current implementation only checks for `scipy` and `netCDF4`.
This adds the necessary check for `h5netcdf`.
Switches to using `importlib.util.find_spec`, as recommended by
https://docs.python.org/3/library/importlib.html#importlib.util.find_spec

The unit test temporarily removes the other two backend options,
then checks that `h5netcdf` is used.
Closes pydata#10401
@dcherian
Copy link
Contributor

LGTM. Can you merge main and add a note to whats-new.rst please?

@dcherian dcherian added the plan to merge Final call for comments label Jul 30, 2025
@dcherian dcherian enabled auto-merge (squash) July 30, 2025 15:33
@dcherian dcherian merged commit c356a40 into pydata:main Jul 30, 2025
36 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

api._get_default_engine_netcdf does not check for h5netcdf
2 participants
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy