(hooke_cli.py) text export, now with measure units. Fixes issue 0014
authordevicerandom <devnull@localhost>
Fri, 24 Jul 2009 14:58:44 +0000 (14:58 +0000)
committerdevicerandom <devnull@localhost>
Fri, 24 Jul 2009 14:58:44 +0000 (14:58 +0000)
hooke_cli.py

index 0f1fdbb5e0bcad0491f58b9b4c0a2290bda78404..0d380424c427c99d22770ba0e86a5b9e6079334e 100755 (executable)
@@ -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()