I have a string which is loaded from a .mat file and is in the following format :
(array([172.169, 73.2]), array([128.83, 102.31]), array([143.49, 124.43]), array([186.83, 95.69]), 'R', array([], dtype=float64))
Is there any way I can convert this directly to a numpy 2D array without parsing over the entire string and removing the "arrays" manually? Neither numpy.fromstring nor numpy.frombuffer will work here.