forked from chinthakanadun/compchem
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathWriteCartesians.py
executable file
·49 lines (41 loc) · 1.92 KB
/
WriteCartesians.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
40
41
42
43
44
45
46
47
48
#!/usr/bin/python
### ### ###
### ### ###
### ### ###
#####b. ####b. ###### .d##b. #####b. ### ####b. #####b.
### "##b "##b ### d##""##b ### "##b ### "##b ### "##b
### ### .d###### ### ### ### ### ### ### .d###### ### ###
### d##P ### ### Y##b. Y##..##P ### ### ### ### ### ### d##P
#####P" "Y###### "Y### "Y##P" ### ### ### "Y###### #####P"
###
###
###
###############################################################
# #
# ccParse.py #
# #
# Reads compchem job file(s) #
# #
###############################################################
#Python Libraries
import subprocess, sys, os
if __name__ == "__main__":
#0 file(s)
files = []
# Takes arguments: (1) input file(s)
if len(sys.argv) > 1:
for i in range(1,len(sys.argv)):
files.append(sys.argv[i])
else:
print "\nWrong number of arguments used. Correct format: ccParse file(s)\n"
sys.exit()
for file in files:
#print "WriteCartesians", file
print "ccParse.py", file, ">", str(file+"_energy1")
print "GaussianPrep.py", file, "-route Cartesians -append cart > /dev/null"
print "cat", file+"_energy1"
print "rm", file+"_energy1"
#print "cat", file+"_energy2"
#print "cat", file+"_energy3"
print "tail -n +7", file.split(".")[0]+"_cart.com"
print "rm", file.split(".")[0]+"_cart.com"