Updated copyright blurbs in all files to '# Copyright'
[hooke.git] / hooke / ui / gui / prettyformat.py
index 32ee4053fa55804e71fbb187f054e0e4a027af39..0b6c984fc395d86ee361c10d092a818a7571d54f 100644 (file)
@@ -1,18 +1,14 @@
-'''
-//
-// prettyformat.py - simple Python function to format values with nice prefixes
-// Version 1.0.1
-//
-// History
-// 2009 07 16: added negative number support
-//             added decimal-formatted output
-//
-// Copyright (c) 2009 Rolf Schmidt, Montreal
-// rschmidt@alcor.concordia.ca
-//
-// This procedure is released under the GNU General Public License version 2
-//
-'''
+# Copyright
+
+"""Format values with nice prefixes.
+History:
+
+* 2009 07 16:
+
+  * added negative number support
+  * added decimal-formatted output
+"""
+__version__ = "1.0.1"
 
 import math
 from numpy import isnan
@@ -138,4 +134,4 @@ iDecimals=3
 for aValue in scaleValues: print decimalFormat(aValue/iMultiplier, iDecimals),
 #print the scale label using the value at iIndex
 print '\n'+get_prefix(scaleValues[iIndex])+'N'
-'''
\ No newline at end of file
+'''