@@ -1576,8 +1576,8 @@ def saveTransportFile(path, species):
1576
1576
(from the chemkin TRANSPORT manual)
1577
1577
"""
1578
1578
with open (path , 'w' ) as f :
1579
- f .write ("! {:15} {:8} {:9} {:9} {:9} {:9} {:9} {:9}\n " .format ('Species' ,'Shape' , 'LJ-depth' , 'LJ-diam' , 'DiplMom' , 'Polzblty' , 'RotRelaxNum' ,'Data' ))
1580
- f .write ("! {:15} {:8} {:9} {:9} {:9} {:9} {:9} {:9}\n " .format ('Name' ,'Index' , 'epsilon/k_B' , 'sigma' , 'mu' , 'alpha' , 'Zrot' ,'Source' ))
1579
+ f .write ("! {0 :15} {1 :8} {2 :9} {3 :9} {4 :9} {5 :9} {6 :9} {7 :9}\n " .format ('Species' ,'Shape' , 'LJ-depth' , 'LJ-diam' , 'DiplMom' , 'Polzblty' , 'RotRelaxNum' ,'Data' ))
1580
+ f .write ("! {0 :15} {1 :8} {2 :9} {3 :9} {4 :9} {5 :9} {6 :9} {7 :9}\n " .format ('Name' ,'Index' , 'epsilon/k_B' , 'sigma' , 'mu' , 'alpha' , 'Zrot' ,'Source' ))
1581
1581
for spec in species :
1582
1582
if (not spec .transportData or
1583
1583
len (spec .molecule ) == 0 ):
@@ -1596,7 +1596,7 @@ def saveTransportFile(path, species):
1596
1596
shapeIndex = 2
1597
1597
1598
1598
if missingData :
1599
- f .write ('! {:19s} {!r}\n ' .format (label , spec .transportData ))
1599
+ f .write ('! {0 :19s} {1 !r}\n ' .format (label , spec .transportData ))
1600
1600
else :
1601
1601
f .write ('{0:19} {1:d} {2:9.3f} {3:9.3f} {4:9.3f} {5:9.3f} {6:9.3f} ! {7:s}\n ' .format (
1602
1602
label ,
0 commit comments