Make stand-alone script
authorDan White <dan@whiteaudio.com>
Tue, 4 Sep 2012 18:00:38 +0000 (13:00 -0500)
committerDan White <dan@whiteaudio.com>
Tue, 4 Sep 2012 18:00:38 +0000 (13:00 -0500)
python-lib/cal-times.py

index a9649518eb6dab05bc3203fcfe02ce0abfc13264..10dce7729fdde3e39cb9b42c9446998b8147de8c 100644 (file)
@@ -1,3 +1,6 @@
+#!/usr/bin/env python
+
+from pylab import *
 from glob import glob
 
 infiles = glob('*.npz')
@@ -17,3 +20,7 @@ ylabel('Time (s)')
 
 print len(dt)
 print 1.0*(dt[0]-dt[-1]) / dt[0]
+
+if __name__ == '__main__':
+    show()
+