save tlr as numpy array 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)