I have identified another memory leaking with Pandas through this piece of code:
import pandas as pd
store = pd.HDFStore(hdf[0])
par = store[hdf[1]][:, hdf[2]]
store.close()
for pixel in pix_fac.itervalues():
fac = pixel[4][::2]
meas = array(par.loc[fac])
100% of computer memory is reach in some seconds, freezing everything. I use a Debian 2.30, Intel i5, 8 GB RAM.
I believe this is related with following questions:
memory leak in creating a buffer with pandas?
Memory leak using pandas dataframe
Someone knows how may I deal with this leaking? I really have to use .loc method to retrieve specific parameters on each iteration.