Closed opoplawski closed 2 years ago
The test is only run if netcdf_filter.h
has nc_def_var_blosc
defined. That means either the netcdf-c build did actually detect blosc and use it, or the function is defined even if blosc is not available. If it's the latter, that is unfortunate, since I don't know of any other way of detecting whether the filter is available (other than trying to call the function and checking the error code).
Note that if you set the env var NO_PLUGINS, then none of the external compression filter tests will be run.
So, from a quick glance at netcdf_filter.h
- nc_def_var_blosc
will always be defined. But it looks like there is:
/* See if filter is available */
EXTERNL int nc_inq_filter_avail(int ncid, unsigned id);
Perhaps you could leverage that?
Right - good idea. Implementing this in https://github.com/Unidata/netcdf4-python/pull/1173
Closed by PR #1173
Testing updating the Fedora netcdf4-python library to 1.6.0 with netcdf 4.9.0:
Now while this notified my that my netcdf build was compiled without blosc support, it seems like this test should not fail but be skipped with a message indicating missing blosc support. Once I compiled netcdf with blosc support the test passed.