Converting 2D to 1D module

I have a same problem. did you find any solution for this?