From daee9b48ac6bbc42e1bd406dc4a1c138cb19d257 Mon Sep 17 00:00:00 2001 From: Anthony LaTorre Date: Thu, 9 Jun 2011 20:46:59 -0400 Subject: you can now take data using sequence mode! also, updated the README file to include more examples. sock.py now replaces scope.py. sock.py is almost identical, but i renamed the class to Socket and fixed it so that data headers are properly received; previously, it was assumed that the 8 byte header was sent in a single recv() call, which is not always the case. draw.py is a new script to draw waveforms using matplotlib instead of root. --- view.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'view.py') diff --git a/view.py b/view.py index 7c465e2..c845bfe 100755 --- a/view.py +++ b/view.py @@ -31,7 +31,7 @@ mg = {} for dataset in [f[name] for name in f]: mg[dataset.name] = TMultiGraph() - samples = dataset.attrs['wave_array_count'] + samples = dataset.attrs['wave_array_count']//dataset.attrs['nom_subarray_count'] dx = dataset.attrs['horiz_interval'] dy = dataset.attrs['vertical_gain'] xoffset = dataset.attrs['horiz_offset'] -- cgit