-
Notifications
You must be signed in to change notification settings - Fork 34
New issue
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
pyAT MAT file V7.3 #686
Comments
Hello @lnadolski, In Matlab, However in python, we rely on SciPy which state: "v4 (Level 1.0), v6 and v7 to 7.2 matfiles are supported.". In addition, SciPy mentions: "You will need an HDF5 Python library to read MATLAB 7.3 format mat files. Because SciPy does not supply one, we do not implement the HDF5 / 7.3 interface here." Decoding the private Matlab structure starting with a plain HDF5 reader looks difficult. So for file exchange with python, you must stick to the V7 format. |
Dear @lfarv This is good to know. |
I found the hdf5storage project which claims to support V7.3 .mat files. The project does not seem to be alive any more, but it may work. I would not like to have PyAT depend on this package, but if it works (still to be checked), we could have PyAT check that if the package is available (the user explicitly installed it), it will use it, otherwise it will stick to SciPy. |
Forget hdf5storage, I could not make it work: it hangs forever… |
Hello both, When I try and load a v7.3 Alternatively, if there is significant demand, we could write new functions specifically to support v7.3 files. I briefly tried loading a v7.3 file using
|
Dear all
the function at.load_lattice does not work for a V7.3 mat lattice file.
Per default, the default matlab is still configured with -V7 (if not changed in the user's preference)
Example to generate a 7.3 version matlab file
The matlab format has changed significantly
save("newLattice.mat", "-v7.3")
Best regards,
Laurent.
The text was updated successfully, but these errors were encountered: