From: Michael Hanke Date: Thu, 16 Feb 2012 07:53:24 +0000 (+0100) Subject: BF: Cannot easily pass ymax in the cmdline X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=07c75408b31ab61fa5c6be0a807955679a3b7531;p=neurodebian.git BF: Cannot easily pass ymax in the cmdline too lazy to deal with it properly right now --- diff --git a/tools/nd_apachelogs2subscriptionstats b/tools/nd_apachelogs2subscriptionstats index b3daf28..f7962ba 100755 --- a/tools/nd_apachelogs2subscriptionstats +++ b/tools/nd_apachelogs2subscriptionstats @@ -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)