src/figures/cantilever-data/make_v_dep_plots.sh: print -> print()
authorW. Trevor King <wking@tremily.us>
Wed, 17 Apr 2013 23:29:46 +0000 (19:29 -0400)
committerW. Trevor King <wking@tremily.us>
Wed, 17 Apr 2013 23:29:46 +0000 (19:29 -0400)
Fix embedded Python syntax to avoid:

  ./make_v_dep_plots.sh
    File "<string>", line 1
      print '%.2f' % 131.97793902439034
                 ^
  SyntaxError: invalid syntax

src/figures/cantilever-data/make_v_dep_plots.sh

index 23eff4b751f06dd9be3aa5fb2c2e8a3546b01dfb..ebc4702355153d72d22c3c74224e70189f4b149b 100755 (executable)
@@ -12,7 +12,7 @@ GPPLOTS=""
 while read LINE
 do
     Kprecise=`echo "$LINE" | sed 's/.*= \([0-9.]*\) +.*/\1/'`
-    K=`python -c "print '%.2f' % $Kprecise"`
+    K=`python -c "print('{:.2f}'.format($Kprecise))"`
     FILE="v-dep.d/v_dep_$K"
     Kindex=`echo "$LINE" | sed 's/K(\([0-9.]*\)) =.*/\1/'`
     case "$Kindex" in