-
Notifications
You must be signed in to change notification settings - Fork 6
/
Gout.py
executable file
·39 lines (32 loc) · 993 Bytes
/
Gout.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#!/usr/bin/env python
import sys
from Scan import DihAScan,BondScan,AnglScan
from IO import ginp_inp
def pf_run(input_fname):
scan_type,gopt_s_fnameb,tup,bes=ginp_inp(input_fname)
if scan_type=="diha":
bes=map(int,bes)
ds=DihAScan(None,gopt_s_fnameb,None,"mm3",None,None,None,bes,tup)
ds.read_gamess_outputs()
ds.write_gouts_data()
elif scan_type=="bond":
bes=map(lambda x:10.*x,bes)
bes=map(int,bes)
ds=BondScan(None,gopt_s_fnameb,None,"mm3",None,None,None,bes,tup)
ds.read_gamess_outputs()
ds.write_gouts_data()
elif scan_type=="angl":
bes=map(lambda x:10.*x,bes)
bes=map(int,bes)
ds=AnglScan(None,gopt_s_fnameb,None,"mm3",None,None,None,bes,tup)
ds.read_gamess_outputs()
ds.write_gouts_data()
GO_input_fname="gout_inp"
lsa=len(sys.argv)
if lsa>2:
print
print 'Use: "./Gout.py name_of_Gout_input_file"'
print
elif lsa==2:
GO_input_fname=h=sys.argv[1]
pf_run(GO_input_fname)