changeset 154:134bdb520040

remove cruft
author Jeff Hammel <k0scist@gmail.com>
date Tue, 12 May 2015 15:51:59 -0700
parents 0e26d3d54329
children 2a124febcd49
files numerics/bar.py
diffstat 1 files changed, 2 insertions(+), 14 deletions(-) [+]
line wrap: on
line diff
--- 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