From 75c0ffc7c3770c3b598cd69b62ddd21790ef40f8 Mon Sep 17 00:00:00 2001 From: Mac Mollison Date: Sat, 13 Mar 2010 17:15:49 -0500 Subject: Cleaned up visualizer script --- scripts/visualize.py | 22 +++------------------- 1 file changed, 3 insertions(+), 19 deletions(-) (limited to 'scripts/visualize.py') diff --git a/scripts/visualize.py b/scripts/visualize.py index 2b828be..5685d1a 100755 --- a/scripts/visualize.py +++ b/scripts/visualize.py @@ -40,25 +40,9 @@ stream = trace_reader.trace_reader(traces) # Filter out garbage events stream = sanitizer.sanitizer(stream) -# Produce G-EDF error records -stream = gedf_test.gedf_test(stream) - -# Produce a statistics record -stream = stats.stats(stream) - -# Filter some records out -def my_filter(record): - if record.record_type == 'error' and record.type_name == 'inversion_end': - if record.job.inversion_end - record.job.inversion_start < 4000000: - return False - return True -#stream = filter(my_filter, stream) - -# It is possible to split the stream in two, -# so we can use more than one output mechanism (for example) -# without re-doing earlier work. -# import itertools -# stream1, stream2 = itertools.tee(stream,2) +# Note: You could include other submodules, to further modify +# the event stream (e.g. produce G-EDF error records that could be +# drawn by the visuazlier in future versions). # Print the records to stdout visualizer.visualizer(stream) -- cgit v1.2.2