Skip to content
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

Mat format error for yelp-chi, snap-patents #4

Open
sajqavril opened this issue Jan 17, 2023 · 0 comments
Open

Mat format error for yelp-chi, snap-patents #4

sajqavril opened this issue Jan 17, 2023 · 0 comments

Comments

@sajqavril
Copy link

sajqavril commented Jan 17, 2023

Dear contributors,

Thanks for your contribution to the community of heterophilic graphs. However, when I try to use yelp-chi data which is downloaded from google drive, I cannot load it correctly using spicy.io.loadmat. I have followed every step of your code and instruction, so could you please give some advice, try yourselves again, or update the dataset?

p.s. the error info looks like:

---------------------------------------------------------------------------
ValueError                                Traceback (most recent call last)
~/etc/miniconda3/lib/python3.8/site-packages/scipy/io/matlab/mio.py in loadmat(file_name, mdict, appendmat, **kwargs)
    223     variable_names = kwargs.pop('variable_names', None)
    224     with _open_file_context(file_name, appendmat) as f:
--> 225         MR, _ = mat_reader_factory(f, **kwargs)
    226         matfile_dict = MR.get_variables(variable_names)
    227 

~/etc/miniconda3/lib/python3.8/site-packages/scipy/io/matlab/mio.py in mat_reader_factory(file_name, appendmat, **kwargs)
     72     """
     73     byte_stream, file_opened = _open_file(file_name, appendmat)
---> 74     mjv, mnv = get_matfile_version(byte_stream)
     75     if mjv == 0:
     76         return MatFile4Reader(byte_stream, **kwargs), file_opened

~/etc/miniconda3/lib/python3.8/site-packages/scipy/io/matlab/miobase.py in get_matfile_version(fileobj)
    229     if maj_val in (1, 2):
...
--> 231     raise ValueError('Unknown mat file type, version %s, %s' % ret)
    232 
    233 
ValueError: Unknown mat file type, version 32, 99

Many thanks and waiting for your response sincerely,
Sun

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant