Changeset 5168 for branches/uq/puq/puq_analyze.py
- Timestamp:
- Mar 24, 2015, 9:42:08 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/uq/puq/puq_analyze.py
r5166 r5168 1 1 #!/usr/bin/env python 2 """ 3 Once submit has finished with the jobs, this function is called to have PUQ 4 process the results. 5 """ 2 6 import sys 3 7 import os … … 8 12 import xml.etree.ElementTree as xml 9 13 10 sys.stdout = open("analyze.out", 'w') 11 sys.stderr = open("analyze.err", 'w') 12 14 # Redirect stdout and stderr to files for debugging. 15 # Append to the files created in get_params.py 16 sys.stdout = open("uq_debug.out", 'a') 17 sys.stderr = open("uq_debug.err", 'a') 13 18 14 19 # Restore the state of a PUQ session from a HDF5 file. … … 61 66 pts += "%s %s\n" % (xarr[0], yp[0]) 62 67 xy.text = pts 68 63 69 64 70 def dist(x1,y1, x2,y2, x3,y3): # x3,y3 is the point
Note: See TracChangeset
for help on using the changeset viewer.