From 4b335fbd082c34f631f903574bedb355f330fa63 Mon Sep 17 00:00:00 2001 From: Thomas Applencourt Date: Fri, 27 Mar 2015 20:04:45 +0100 Subject: [PATCH] Update gamess.py for python 2.6 format --- src/parser/gamess_us.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/parser/gamess_us.py b/src/parser/gamess_us.py index e8b23c1..e3bbf15 100644 --- a/src/parser/gamess_us.py +++ b/src/parser/gamess_us.py @@ -116,13 +116,13 @@ def handle_l_gamess_us(l_atom_basis): # one L => S & P a = i_l.split() - common = "{:>3}".format(a[0]) - common += "{:>15.7f}".format(float(a[1])) + common = "{0:>3}".format(a[0]) + common += "{0:>15.7f}".format(float(a[1])) - tail_s = common + "{:>23.7f}".format(float(a[2])) + tail_s = common + "{0:>23.7f}".format(float(a[2])) body_s.append(tail_s) - tail_p = common + "{:>23.7f}".format(float(a[3])) + tail_p = common + "{0:>23.7f}".format(float(a[3])) body_p.append(tail_p) l_line += [l_line_raw[begin].replace("L", "S")]