Stephan Hoyer

Results 367 comments of Stephan Hoyer

I am strongly in support of type stable interfaces. It should not be data dependent whether indexing returns a NumPy arrays or a masked array. > If you always want...

> Long story short: Yes I do propose that we check valid_range, valid_min and valid_max attributes and return np.uint8 if these attributes have unsigned data type. I am :-1: on...

You need to use a lock when using netCDF4 with multiple threads. Unfortunately, the underlying HDF5 library is not thread safe.

Is that true even for reading/writing independent netCDF3 files? On Mon, Sep 3, 2018 at 11:00 PM Ryan May wrote: > Even if HDF5 is compiled with thread safety, the...

The netCDF4 data model (HDF5) can't easily support some of these fancy indexing tricks. But if you're using netCDF3 files, try `scipy.io.netcdf`, which supports the full generality of NumPy's indexing...

To clarify: we certainly could imagine adding a way to do this sort of indexing, but it would be no better than a loop in pure Python. It's just not...

We would also _love_ to have this, but unfortunately, I don't think it's an easy fix (as it would require delving into the netcdf C library). Hopefully @jswhit can elaborate.

I doubt there's "no way", but I don't have well defined sense of how difficult it would be (or who actually knows enough to do it). There is, for example,...

> I suppose as a workaround we could dump the bytes from the open file object to a temp file, and then pass the name of that temp file to...

@marqh that would work for this example, but in general a python file object only needs to adhere the file API -- it need not be an actual file on...