climate-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From good...@apache.org
Subject svn commit: r1506661 - /incubator/climate/branches/RefactorInput/ocw/plotter.py
Date Wed, 24 Jul 2013 19:00:30 GMT
Author: goodman
Date: Wed Jul 24 19:00:29 2013
New Revision: 1506661

URL: http://svn.apache.org/r1506661
Log:
CLIMATE-215 - Quick fix for Plotter constructor

Modified:
    incubator/climate/branches/RefactorInput/ocw/plotter.py

Modified: incubator/climate/branches/RefactorInput/ocw/plotter.py
URL: http://svn.apache.org/viewvc/incubator/climate/branches/RefactorInput/ocw/plotter.py?rev=1506661&r1=1506660&r2=1506661&view=diff
==============================================================================
--- incubator/climate/branches/RefactorInput/ocw/plotter.py (original)
+++ incubator/climate/branches/RefactorInput/ocw/plotter.py Wed Jul 24 19:00:29 2013
@@ -48,7 +48,7 @@ class Plotter:
     models), subplots will be drawn for each dataset in a single file.
     '''
     
-    def __init__(self, evaluation, work_dir=None, fmt='png'):
+    def __init__(self, evaluation, workdir=None, fmt='png'):
         '''
         Plotter Constructor.
         
@@ -65,10 +65,11 @@ class Plotter:
             png, eps, and pdf.
         :type fmt: str 
         '''
-        if work_dir is None:
-            work_dir = os.getcwd()
+        if workdir is None:
+            workdir = os.getcwd()
             
-        self.work_dir = work_dir
+        self.workdir = workdir
+        self.fmt = fmt
         self.assign_plot_data(evaluation)
     
     def assign_plot_data(self, evaluation):



Mime
View raw message