h5stat error: Invalid threshold for small datasets