54 inpfile =
open(
"CUTS-00",
"rt")
55 outfile =
open(
"CUTS.sql",
"awt")
56 line =volname =modname =comment =volline =cindx =
' '
60 r3 =r4 =r5 =r6 =r7 =r8 =r9 =0.0
66 line = inpfile.readline()
72 name = string.split(line)
92 volline =
str(indx)+
",'"+volname+
"',"+
str(r2)+
","+
str(r3)+
","+
str(r4)+
","+
str(r5)
93 volline = volline+
","+
str(r6)+
","+
str(r7)+
","+
str(r8)
95 outfile.write(
"insert into CUTS_data (CUTS_data_id, volume,dX1,dX2,dY1,dY2,dZ1,Xpos,Ypos) values (\n")
96 outfile.write(volline)
98 outfile.write(
"insert into CUTS_data2tag values ('CUTS-00', ")
100 outfile.write(
");\n")
103 print ' IndexError : ',nmax,
' ',name