HDFGroup / h5pyd

h5py distributed - Python client library for HDF Rest API
Other
114 stars 38 forks source link

Return normal Python integer as Dataset.size property #62

Closed ghost closed 5 years ago

ghost commented 5 years ago

The Dataset.size property returns a scalar numpy.ndarray value which creates TypeError exceptions when encoding that value into JSON. This PR fixes this by ensuring that the return value is a normal Python integer.