tsavefig=True as default in visualize() - sphere - GPU-based 3D discrete element method algorithm with optional fluid coupling
 (HTM) git clone git://src.adamsgaard.dk/sphere
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) LICENSE
       ---
 (DIR) commit 4b919b6a8263cf9bfd4189ac025fc1fc27a5025d
 (DIR) parent e9500d3f48fd83634be0c184b01e26ece254faf4
 (HTM) Author: Anders Damsgaard <adc@geo.au.dk>
       Date:   Fri, 19 Oct 2012 15:29:36 +0200
       
       savefig=True as default in visualize()
       
       Diffstat:
         M python/sphere.py                    |      13 +++++++------
       
       1 file changed, 7 insertions(+), 6 deletions(-)
       ---
 (DIR) diff --git a/python/sphere.py b/python/sphere.py
       t@@ -977,13 +977,14 @@ def render(binary,
          subprocess.call("rm {0}.ppm".format(out), shell=True)
          
        def renderAll(project,
       -                  rt_bin = "~/code/sphere/raytracer/rt",
       +              method = "pressure",
       +              max_val = 10e3,
                      out_folder = "../img_out",
                      graphics_format = "png",
                      workhorse = "GPU",
       -              method = "pressure",
       -              max_val = 10e3,
       -              resolution = numpy.array([800, 800])):
       +              resolution = numpy.array([800, 800]),
       +                  rt_bin = "~/code/sphere/raytracer/rt",
       +              verbose = False):
        
          lastfile = status(project)
        
       t@@ -995,10 +996,10 @@ def renderAll(project,
            out = out_folder + "/{0}.output{1}".format(project, i)
            
            # Call raytracer, also converts to format
       -    render(fn, out, graphics_format, resolution, workhorse, method, max_val, rt_bin, verbose = False)
       +    render(fn, out, graphics_format, resolution, workhorse, method, max_val, rt_bin, verbose)
        
          
       -def visualize(project, method = 'energy', savefig = False, outformat = 'png'):
       +def visualize(project, method = 'energy', savefig = True, outformat = 'png'):
          """ Visualize output from the target project,
              where the temporal progress is of interest.
          """