]> git.donarmstrong.com Git - neurodebian.git/commitdiff
BF: Cannot easily pass ymax in the cmdline
authorMichael Hanke <michael.hanke@gmail.com>
Thu, 16 Feb 2012 07:53:24 +0000 (08:53 +0100)
committerMichael Hanke <michael.hanke@gmail.com>
Thu, 16 Feb 2012 07:53:24 +0000 (08:53 +0100)
too lazy to deal with it properly right now

tools/nd_apachelogs2subscriptionstats

index b3daf28f26800c4a483fd90fa8b6e5621615c56c..f7962ba24fcda13b14203c27b749af5e8d0d89e0 100755 (executable)
@@ -90,10 +90,6 @@ if __name__ == '__main__':
     if not len(sys.argv) > 1:
         print 'Need output filename.'
         sys.exit(1)
-    if len(sys.argv) > 2:
-        ymax = float(sys.argv[2])
-    else:
-        ymax = 13
     cfg_path="/home/neurodebian/neurodebian.git/neurodebian.cfg"
     cfg = SafeConfigParser()
     cfg.read(cfg_path)
@@ -108,4 +104,4 @@ if __name__ == '__main__':
         date = datetime.strptime(date, "%d %b %Y")
         data.append((ip.strip(), loc, suite, date2num(date)))
     data = np.array(data, dtype=dt)
-    make_figure(data, ymax).savefig(sys.argv[1], bbox_inches='tight', dpi=60)
+    make_figure(data, ymax=13).savefig(sys.argv[1], bbox_inches='tight', dpi=60)