projects
/
thesis.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
240eefa
)
src/figures/cantilever-data/make_v_dep_plots.sh: print -> print()
author
W. Trevor King
<wking@tremily.us>
Wed, 17 Apr 2013 23:29:46 +0000
(19:29 -0400)
committer
W. 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
patch
|
blob
|
history
diff --git
a/src/figures/cantilever-data/make_v_dep_plots.sh
b/src/figures/cantilever-data/make_v_dep_plots.sh
index 23eff4b751f06dd9be3aa5fb2c2e8a3546b01dfb..ebc4702355153d72d22c3c74224e70189f4b149b 100755
(executable)
--- a/
src/figures/cantilever-data/make_v_dep_plots.sh
+++ b/
src/figures/cantilever-data/make_v_dep_plots.sh
@@
-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