From a loop I\'m getting an array. I want to save this arrays in a tempfile. The problem is that np.savez only saves the last array from the loop.
tempfile
np.savez
You can use the *args arguments to save many arrays in only one temp file.
*args
np.savez(tmp, *getarray[:10])
or:
np.savez(tmp, *[getarray[0], getarray[1], getarray[8]])