source: misc/tools/event_selection/test.py @ 7381

Last change on this file since 7381 was 6251, checked in by rwilson, 15 years ago

Added Event Selection tool.

File size: 500 bytes
Line 
1#!/bin/env python
2
3"""
4Program to test the meta-code written by EventSelection.py.
5"""
6
7import sys
8import os.path
9
10def 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
17quake_id = 27198
18base_dir = r'X:\Design\EventSelection'
19
20(w, l) = getQuakeMuxInfo(quake_id, base_dir)
21print 'WeightFactor=%f' % w
22print 'Dirs=%s' % str(l)
Note: See TracBrowser for help on using the repository browser.