I need to convert the following string that I pass as a command-line argument in my python program
'[[0,1,0],[1,1,1],[0,1,0]]'.
Numpy has something that could be useful for my problem, however, it works only with 1D arrays found in a string. ,
https://docs.scipy.org/doc/numpy/reference/generated/numpy.fromstring.html
Which options there are to solve my problem?