projects
/
hooke.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3dcb8e6
)
(hooke_cli.py) text export, now with measure units. Fixes issue 0014
author
devicerandom
<devnull@localhost>
Fri, 24 Jul 2009 14:58:44 +0000
(14:58 +0000)
committer
devicerandom
<devnull@localhost>
Fri, 24 Jul 2009 14:58:44 +0000
(14:58 +0000)
hooke_cli.py
patch
|
blob
|
history
diff --git
a/hooke_cli.py
b/hooke_cli.py
index 0f1fdbb5e0bcad0491f58b9b4c0a2290bda78404..0d380424c427c99d22770ba0e86a5b9e6079334e 100755
(executable)
--- a/
hooke_cli.py
+++ b/
hooke_cli.py
@@
-691,6
+691,9
@@
Syntax: txt [filename] {plot to export}
text='\n'.join(rows)
txtfile=open(filename,'w+')
+ #Save units of measure in header
+ txtfile.write('X:'+self.plots[whichplot].units[0]+'\n')
+ txtfile.write('Y:'+self.plots[whichplot].units[1]+'\n')
txtfile.write(text)
txtfile.close()