Skip to content

More robust guess_can_open for netCDF4/scipy/h5netcdf entrypoints#5296

Merged
shoyer merged 3 commits intopydata:masterfrom
shoyer:entrypoint-detection
May 14, 2021
Merged

More robust guess_can_open for netCDF4/scipy/h5netcdf entrypoints#5296
shoyer merged 3 commits intopydata:masterfrom
shoyer:entrypoint-detection

Conversation

@shoyer
Copy link
Copy Markdown
Member

@shoyer shoyer commented May 12, 2021

The new version checks magic numbers in files on disk, not just already open file objects.

I've also added a bunch of unit-tests.

Fixes GH5295

The new version check magic numbers in files on disk, not just already
open file objects.

I've also added a bunch of unit-tests.

Fixes GH5295
@shoyer
Copy link
Copy Markdown
Member Author

shoyer commented May 13, 2021

Thanks @max-sixty for review!

Anyone else want to take a look? Maybe @alexamici @aurghs ?

If not, I"ll probably self-merge this in a few days...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

plan to merge Final call for comments

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Engine is no longer inferred for filenames not ending in ".nc"

2 participants