source: branches/uq/puq/puq_analyze.py @ 5049

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
2from puq import *
3import csv
4import numpy as np
5import sys, os, h5py
6
7
8def 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
20sw = load_from_hdf5(sys.argv[1])
21sw.analyze()
Note: See TracBrowser for help on using the repository browser.