Rev | Line | |
---|
[6251] | 1 | #!/bin/env python |
---|
| 2 | |
---|
| 3 | """ |
---|
| 4 | Program to test the meta-code written by EventSelection.py. |
---|
| 5 | """ |
---|
| 6 | |
---|
| 7 | import sys |
---|
| 8 | import os.path |
---|
| 9 | |
---|
| 10 | def getQuakeMuxInfo(quake_id, dir): |
---|
| 11 | import_path = os.path.join(dir, '%d' % quake_id) |
---|
| 12 | sys.path.append(import_path) |
---|
| 13 | exec 'import urs_data_%d as ursd' % quake_id |
---|
| 14 | sys.path = sys.path[:-1] |
---|
| 15 | return ursd.getInfo(dir) |
---|
| 16 | |
---|
| 17 | quake_id = 27198 |
---|
| 18 | base_dir = r'X:\Design\EventSelection' |
---|
| 19 | |
---|
| 20 | (w, l) = getQuakeMuxInfo(quake_id, base_dir) |
---|
| 21 | print 'WeightFactor=%f' % w |
---|
| 22 | print 'Dirs=%s' % str(l) |
---|
Note: See
TracBrowser
for help on using the repository browser.