# HG changeset patch # User Jeff Hammel # Date 1431471119 25200 # Node ID 134bdb520040fc1c933b895f25c6ceb78269df84 # Parent 0e26d3d5432921dbb9adaf50d8d2b95bae347740 remove cruft diff -r 0e26d3d54329 -r 134bdb520040 numerics/bar.py --- a/numerics/bar.py Mon Apr 13 10:44:02 2015 -0700 +++ b/numerics/bar.py Tue May 12 15:51:59 2015 -0700 @@ -30,7 +30,7 @@ d3 = f.read() -def bar_chart(data, output, title=None): +def bar_chart(data, title=None): """ create a bar chart @@ -55,18 +55,6 @@ self.add_argument('-t', '--title', dest='title', help="plot title") - def plot_filename(self): - """determine the plot filename""" - # this is a STUB - # in reality, this should come from -o, --output - # if applicable, or, should be determined from - # the plot --title, or should be eg - # '20150315203424.html' - # we are doing this right nowe to work around the fact - # that bokeh, in particular, will just cry if you - # don't set this - return 'foo.html' - def main(args=sys.argv[1:]): """CLI""" @@ -85,7 +73,7 @@ data = data[0] # generate bar chart - options.output.write(bar_chart(data, parser.plot_filename(), title=options.title)) + options.output.write(bar_chart(data, title=options.title)) if options.output != sys.stdout: # print URL of file