fhs / pyhdf

Python wrapper around the NCSA HDF version 4 library
https://pypi.org/project/pyhdf/
Other
46 stars 15 forks source link

Implement the array_interface for SDS #32

Closed mraspaud closed 5 years ago

mraspaud commented 5 years ago

This PR implements the array interface so that SDS objects can be used easily with scientific python packages. My use case was integrating SDS objects in dask.

mraspaud commented 5 years ago

Sure, there https://github.com/fhs/pyhdf/blob/master/pyhdf/test_SD.py ?

fhs commented 5 years ago

Sure, there https://github.com/fhs/pyhdf/blob/master/pyhdf/test_SD.py ?

Yep

mraspaud commented 5 years ago

Looking more into this, it seems it doesn't work as I expected. The SDS class is putting overriding the attribute access which I think messes things up, or maybe I don't understand the array interface as I think I did. So I'll just close this for now.