sbonaime / seedlink_plotter

Seedlink_plotter A python script to plot real time seismic data from a seedlink server
GNU Lesser General Public License v3.0
36 stars 19 forks source link

need to clear processing list of traces after trim() in plot_graph() #19

Closed paitor closed 8 years ago

paitor commented 8 years ago

Hi Guys

Since I have not yet had the time to learn how github works I report on this here instead and let you sort out if this is worth fixing or not.

Problem: Every time the trim() method of a Stream or Trace object is used an entry is added to the list Trace.stats.processing, thus if the seedlink_plotter is run 24/7 with an update time of 1s this list will eventually grow large.

Solution: I therefore suggest to loop over the traces after each use of the trim() method invocation and pop the last entry of trace_i.stats.processing

regP

megies commented 8 years ago

Good point. We can just set the processing to an empty list whenever we append packets to it..