<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#ffffff">
Hi Elizabeth,<br>
<br>
You could always include these lines in your script:<br>
<br>
import os<br>
old_filename =
'GT_BTAccel_256AMR4_PeHeat_sf5_SNe_0301_Slice_z_PotentialField'<br>
count = 0<br>
<whatever code generates your png file><br>
new_filename = "%s_%04i.png" % (old_filename, count)<br>
os.rename(old_filename, new_filename)<code><br>
</code> count += 1<br>
<code></code>...<br>
<br>
I don't think there is an automatic filename iterator (instead of
clobberer) in yt. Maybe I'll look at adding one later.<br>
<br>
Cameron<br>
<br>
<br>
On 07/08/2011 07:43 AM, Elizabeth Tasker wrote:
<blockquote
cite="mid:53CEA654-BCB4-4971-AE10-18280ADDC025@mcmaster.ca"
type="cite">
<pre wrap="">Hi,
I'd like to create a bunch of slices of the same field, but with different options (width, modifiers etc). Is it possible to change the file name yt saves the plots under so:
GT_BTAccel_256AMR4_PeHeat_sf5_SNe_0301_Slice_z_PotentialField.png
Doesn't get over-written with each one?
Thanks you~
Elizabeth
_______________________________________________
yt-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:yt-users@lists.spacepope.org">yt-users@lists.spacepope.org</a>
<a class="moz-txt-link-freetext" href="http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org">http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org</a>
</pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
Cameron Hummels
PhD Candidate, Astronomy Department of Columbia University
Public Outreach Director, Astronomy Department of Columbia University
NASA IYA New York State Student Ambassador
<a class="moz-txt-link-freetext" href="http://outreach.astro.columbia.edu">http://outreach.astro.columbia.edu</a>
PGP: 0x06F886E3</pre>
</body>
</html>