Problem of memory allocation
c=Cube('cube.fits')
data = c.data
for num in range(20):
print num
for k in range(c.shape[0]):
im = c[k,:,:]
The allocated memory increases of 0.1% every iteration.
c=Cube('cube.fits')
data = c.data
for num in range(20):
print num
for k in range(c.shape[0]):
im = c[k,:,:]
The allocated memory increases of 0.1% every iteration.