-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathphantom_view
executable file
·25 lines (20 loc) · 928 Bytes
/
phantom_view
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/usr/local/bin/python2.7
import os
import argparse
parser = argparse.ArgumentParser(description='Display frames from high-speed Phantom camera videos.')
parser.add_argument('shot', type=str, nargs='?',
help='shot number')
parser.add_argument('-c', '--correlate', action='store_true',
help='show correlation example')
args = parser.parse_args()
good_python = '/usr/local/bin/python2.7'
script_path = os.path.dirname(os.path.realpath(__file__))
view_path = script_path + '/view.py'
fl_corr_path = script_path + '/fl_corr.py'
if args.shot:
os.system('{python} {view} {shot}'.format(python=good_python,
view=view_path, shot=args.shot))
elif args.correlate:
os.system('{python} {fl}'.format(python=good_python, view=view_path, fl=fl_corr_path))
else:
os.system('{python} -i {view}'.format(python=good_python, view=view_path))