We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Probably we can check if the .mat file is supported by looking at the starting bytes of the file, see:
def is_hdf5(file_path): with open(file_path, 'rb') as f: signature = f.read(8) return signature == b'\x89HDF\r\n\x1a\n'
Based on https://docs.hdfgroup.org/hdf5/v1_14/_f_m_t3.html#Superblock, it seems that this indeed a way to quickly check if a given file is hdf5 .
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Probably we can check if the .mat file is supported by looking at the starting bytes of the file, see:
Based on https://docs.hdfgroup.org/hdf5/v1_14/_f_m_t3.html#Superblock, it seems that this indeed a way to quickly check if a given file is hdf5 .
The text was updated successfully, but these errors were encountered: