Skip to content

Handle non-scalar MATLAB structures #2

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

Open
neuromechanist opened this issue Feb 13, 2025 · 0 comments
Open

Handle non-scalar MATLAB structures #2

neuromechanist opened this issue Feb 13, 2025 · 0 comments

Comments

@neuromechanist
Copy link
Owner

Non-scalar structures can be converted to Python objects, for example, the EEG or STUDY structures from EEGLAB can be victims:

", "CURRENTSET": "2.0", "CURRENTSTUDY": "0.0", "EEG": "", "LASTCOM": [], "PLUGINLIST": "", "STUDY": [], "freqs": "[[0.0],[1.0],[2.0],[3.0],...,[64.0]]", "globalvars": "['ALLCOM', 'ALLEEG', 'CURRENTSET', 'CURRENTSTUDY', 'EEG', 'LASTCOM', 'PLUGINLIST', 'STUDY']", "spectra": "[[16.742037097885316,19.688018745267804,15.71891718942258,12.237790562719223,9.422334658565108,...,-19.301965208108534]]", "tmpEEG": "{'name': 'EEG', 'size': matlab.double([[1.0,1.0]]), 'bytes': 4358774.0, 'class': 'struct', 'global': True, 'sparse': False, 'complex': False, 'nesting': {'function': '', 'level': 1.0}, 'persistent': False}"}, "figures": []}">
{"output": "", "error": null, "workspace": {"ALLCOM": [], "ALLEEG": "", "CURRENTSET": "2.0", "CURRENTSTUDY": "0.0", "EEG": "", "LASTCOM": [], "PLUGINLIST": "", "STUDY": [], "freqs": "[[0.0],[1.0],[2.0],[3.0],...,[64.0]]", "globalvars": "['ALLCOM', 'ALLEEG', 'CURRENTSET', 'CURRENTSTUDY', 'EEG', 'LASTCOM', 'PLUGINLIST', 'STUDY']", "spectra": "[[16.742037097885316,19.688018745267804,15.71891718942258,12.237790562719223,9.422334658565108,...,-19.301965208108534]]", "tmpEEG": "{'name': 'EEG', 'size': matlab.double([[1.0,1.0]]), 'bytes': 4358774.0, 'class': 'struct', 'global': True, 'sparse': False, 'complex': False, 'nesting': {'function': '', 'level': 1.0}, 'persistent': False}"}, "figures": []}
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