mat4py icon indicating copy to clipboard operation
mat4py copied to clipboard

Able to load complex data arrays.

Open etxealaikoion opened this issue 5 years ago • 1 comments

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 avatar Aug 14 '19 17:08 etxealaikoion

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

jcbsv avatar Feb 16 '21 09:02 jcbsv