@classmethod
def from_h5py(cls, h5py_file):
    """Directly load an existing `h5py.File`"""
    new_file = cls.__new__(cls)
    new_file.h5 = h5py_file
    new_file._check_file_format()
    return new_file
