aboutsummaryrefslogtreecommitdiff
path: root/view.py
diff options
context:
space:
mode:
authorAnthony LaTorre <telatorre@gmail.com>2011-06-09 20:46:59 -0400
committerAnthony LaTorre <telatorre@gmail.com>2011-06-09 20:46:59 -0400
commitdaee9b48ac6bbc42e1bd406dc4a1c138cb19d257 (patch)
tree876bf89c626b4ca512b88ca7dadb6957885f94e6 /view.py
parent76982ea70f1eefa481af3cd9f7bafdf92733aad0 (diff)
downloadlecrunch-daee9b48ac6bbc42e1bd406dc4a1c138cb19d257.tar.gz
lecrunch-daee9b48ac6bbc42e1bd406dc4a1c138cb19d257.tar.bz2
lecrunch-daee9b48ac6bbc42e1bd406dc4a1c138cb19d257.zip
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.
Diffstat (limited to 'view.py')
-rwxr-xr-xview.py2
1 files changed, 1 insertions, 1 deletions
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']