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

Able to load complex data arrays. #3

Open
wants to merge 10 commits into
base: master
Choose a base branch
from

Conversation

etxealaikoion
Copy link

@etxealaikoion etxealaikoion commented Aug 14, 2019

Hi,

I modified the code to load and save complex datatype arrays from/to .mat files. When loading, it creates a tuple of python builtin complex values.

I've implemented a test related to complex values, using the same format of the other tests (as close as I could). Now it passes all the tests.

But regarding tests, I had to modify the json module, from "json" to "json-tricks", to be able to serialize complex data, cause the standar json.dumps didn't work with complex numbers. Any problem with that?

Regards,

Ion

etxealaikoion and others added 7 commits August 14, 2019 19:02
The code about the flags introducing at the headers of variables is not clear. Is much clearer when reading header of variables (in loadmat function), and something similar should be done for code clarity.
@jcbsv
Copy link
Contributor

jcbsv commented Feb 16, 2021

Is there a way to achieve this without json-tricks?

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

Successfully merging this pull request may close these issues.

3 participants