I think using the dictionary interface provided by h5py makes it clear what the code is doing and is more readable than using `partial` and paths from the `os` module. It took me a couple read-throughs of this block of code to figure out what it was doing.

What about using the following?

```python
data_grp = h5grp['sample']
data = data_grp['data']
indices = data_grp['indices']
indptr = data_grp['indprt']
```