Silently ignoring user passed engine
key in some cases when opening file objects
#4457
Labels
engine
key in some cases when opening file objects
#4457
What happened:
When I
open()
a netCDF4 file and pass the file object toxr.open_dataset
withengine='scipy'
xarray silently ignores the value of theengine
keyword and opens the file withh5netcdf
. When opening an netCDF3 file withengine='h5netcdf'
thescipy
engine is used instead without warning.What you expected to happen:
Silent autodetection of the engine is fine when passing
engine=None
, but it is very surprising when passing a value explicitly. I would have expected an exception or at least a warning.Minimal Complete Verifiable Example:
The text was updated successfully, but these errors were encountered: