Commit ed009c87 authored by Sebastian Heimann's avatar Sebastian Heimann
Browse files

fixed a memory leak

parent 839978e1
...@@ -427,7 +427,7 @@ def search( ...@@ -427,7 +427,7 @@ def search(
iframe = int(round(((tpeak-t0) - ioff*deltat_cf) / deltat_cf)) iframe = int(round(((tpeak-t0) - ioff*deltat_cf) / deltat_cf))
frame = frames[:, iframe] frame = frames[:, iframe]
imax = num.argmax(frame) imax = imaxs[iframe]
latpeak, lonpeak, xpeak, ypeak, zpeak = \ latpeak, lonpeak, xpeak, ypeak, zpeak = \
grid.index_to_location(imax) grid.index_to_location(imax)
...@@ -500,6 +500,9 @@ def search( ...@@ -500,6 +500,9 @@ def search(
io.save([tr_stackmax, tr_stackmax_indx], ifm_path_template) io.save([tr_stackmax, tr_stackmax_indx], ifm_path_template)
del frames
del frame
logger.info('end processing time window group: %s - %s' % ( logger.info('end processing time window group: %s - %s' % (
util.time_to_str(tmin_win), util.time_to_str(tmin_win),
util.time_to_str(tmax_win))) util.time_to_str(tmax_win)))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment