I am importing a large struct from Matlab to Python using the scipy.io. The data seems to be imported OK, but it is full of nested lists, which I am not able to simplify. Here's one of the simplest examples:
sc = sio.loadmat(matlabFile)
sc['DieID']['w']
which results in the following output:
array([[array([[ 1309.09090909]]), array([[ 1309.09090909]]),
array([[1000]], dtype=uint16)]], dtype=object)
Could you please suggest how do I reduce this particular field to a simple list [1309.09090909, 1309.09090909, 1000]?
Thank you for your help!