I am doing some scientific computation, and I produce data with a C program and analyses using python. I want to export an array from C to python.
So far what I am doing is to write the C array, which is multidimensional (More than 2), into a csv file, and reading it from python np.genfromtxt and unwrapping it using the .reshape method. I think it would be a huge improvement if I could directly write a .npy file and call np.load. Is there any library in C that could do this?