save numpy arrays to file code example
Example 1: save numpy array
x = np.arange(10)
np.save(outfile, x)
Example 2: save numpy array
np.save("sim1.npy", sim)
x = np.arange(10)
np.save(outfile, x)
np.save("sim1.npy", sim)