[Yt-svn] yt-commit r1383 - branches/yt-1.5/yt/raven trunk/yt/raven
mturk at wrangler.dreamhost.com
mturk at wrangler.dreamhost.com
Sun Jul 19 21:04:49 PDT 2009
Author: mturk
Date: Sun Jul 19 21:04:47 2009
New Revision: 1383
URL: http://yt.spacepope.org/changeset/1383
Log:
If no arguments are supplied to pc.save(), it will default to using the
basename of the parameter file as the prefix.
Modified:
branches/yt-1.5/yt/raven/PlotCollection.py
trunk/yt/raven/PlotCollection.py
Modified: branches/yt-1.5/yt/raven/PlotCollection.py
==============================================================================
--- branches/yt-1.5/yt/raven/PlotCollection.py (original)
+++ branches/yt-1.5/yt/raven/PlotCollection.py Sun Jul 19 21:04:47 2009
@@ -67,12 +67,13 @@
for p in self.plots:
yield p
- def save(self, basename, format="png", override=False, force_save=False):
+ def save(self, basename=None, format="png", override=False, force_save=False):
"""
Same plots with automatically generated names, prefixed with *basename*
(including directory path) unless *override* is specified, and in
*format*.
"""
+ if basename is None: basename = str(self.pf)
fn = []
for plot in self.plots:
fn.append(plot.save_image(basename, \
Modified: trunk/yt/raven/PlotCollection.py
==============================================================================
--- trunk/yt/raven/PlotCollection.py (original)
+++ trunk/yt/raven/PlotCollection.py Sun Jul 19 21:04:47 2009
@@ -67,12 +67,13 @@
for p in self.plots:
yield p
- def save(self, basename, format="png", override=False, force_save=False):
+ def save(self, basename=None, format="png", override=False, force_save=False):
"""
Same plots with automatically generated names, prefixed with *basename*
(including directory path) unless *override* is specified, and in
*format*.
"""
+ if basename is None: basename = str(self.pf)
fn = []
for plot in self.plots:
fn.append(plot.save_image(basename, \
More information about the yt-svn
mailing list