Okay this is werid, i keep getting the error, randomly.
ValueError: matrix must be 2-dimensional
So i tracked it down, and cornered it to basically something like this:
a_list = [[(1,100) for _ in range(32)] for _ in range(32)]
numpy.matrix(a_list)
Whats wrong with this? If i print a_list it is clearly a 2d matrix of tuples, however numpy does not believe so.
The easiest way around this is to just use a numpy array, instead of a numpy matrix:
Numpy matrices are strictly 2-dimensional, and
a_listis 3-dimensional. So numpy matrices are not an option.