mat4py
mat4py copied to clipboard
Able to load complex data arrays.
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
Is there a way to achieve this without json-tricks?