maziarraissi / PINNs

Physics Informed Deep Learning: Data-driven Solutions and Discovery of Nonlinear Partial Differential Equations
https://maziarraissi.github.io/PINNs
MIT License
3.73k stars 1.25k forks source link

encountered 'ValueError: Mat 4 mopt wrong format, byteswapping problem?' in the 'cylinder_nektar_t0_vorticity.mat' file #54

Closed 2480667859 closed 5 months ago

2480667859 commented 5 months ago
Dear author, thank you for sharing your code. 

I have encountered 'ValueError: Mat 4 mopt wrong format, byteswapping problem?' in the 'cylinder_nektar_t0_vorticity.mat' file. 1: May I ask where is cylinder_nektar_t0_vorticity.mat 'downloaded? 2: If there are other partners who also encountered this problem, can you share how to solve this problem? The errors occur as follows: data_vort = scipy.io.loadmat('../Data/cylinder_nektar_t0_vorticity.mat') File "E:\anaconda3\envs\tensorflow1x\lib\site-packages\scipy\io\matlab\mio.py", line 226, in loadmat matfile_dict = MR.get_variables(variable_names) File "E:\anaconda3\envs\tensorflow1x\lib\site-packages\scipy\io\matlab\mio4.py", line 391, in get_variables hdr, next_position = self.read_var_header() File "E:\anaconda3\envs\tensorflow1x\lib\site-packages\scipy\io\matlab\mio4.py", line 347, in read_var_header hdr = self._matrix_reader.read_header() File "E:\anaconda3\envs\tensorflow1x\lib\site-packages\scipy\io\matlab\mio4.py", line 109, in read_header raise ValueError('Mat 4 mopt wrong format, byteswapping problem?') ValueError: Mat 4 mopt wrong format, byteswapping problem?