From 240eefa47ddfaf86c49352e01dac745545eb98b7 Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Wed, 17 Apr 2013 17:57:56 -0400 Subject: [PATCH] src/figures/cantilever-data/get_v_dep.sh: print -> print() Fix embedded Python syntax to avoid: cd .. && ./get_v_dep.sh File "", line 1 print '%.2f' % 131.97793902439034 ^ SyntaxError: invalid syntax --- src/figures/cantilever-data/get_v_dep.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/figures/cantilever-data/get_v_dep.sh b/src/figures/cantilever-data/get_v_dep.sh index e2153ec..bf8972f 100755 --- a/src/figures/cantilever-data/get_v_dep.sh +++ b/src/figures/cantilever-data/get_v_dep.sh @@ -9,7 +9,7 @@ AVGFILE='./data/averaged-data' 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" echo "clearing $FILE" > "$FILE.dat" -- 2.26.2