Last change
on this file since 5049 was
5029,
checked in by mmh, 9 years ago
|
puq integration snap
|
-
Property svn:executable set to
*
|
File size:
404 bytes
|
Line | |
---|
1 | #!/usr/bin/env python |
---|
2 | from puq import * |
---|
3 | import csv |
---|
4 | import numpy as np |
---|
5 | import sys, os, h5py |
---|
6 | |
---|
7 | |
---|
8 | def load_from_hdf5(name): |
---|
9 | h5 = h5py.File(name, 'r+') |
---|
10 | sw = unpickle(h5['private/sweep'].value) |
---|
11 | sw.fname = os.path.splitext(name)[0] |
---|
12 | h5.close() |
---|
13 | |
---|
14 | sw.psweep._sweep = sw |
---|
15 | |
---|
16 | if hasattr(sw.psweep, 'reinit'): |
---|
17 | sw.psweep.reinit() |
---|
18 | return sw |
---|
19 | |
---|
20 | sw = load_from_hdf5(sys.argv[1]) |
---|
21 | sw.analyze() |
---|
Note: See
TracBrowser
for help on using the repository browser.