[yt-users] changing the name of saved files

Elizabeth Tasker taskere at mcmaster.ca
Fri Jul 8 06:35:39 PDT 2011


Thanks Cameron and Stephen,

Either of your options will work :)

Elizabeth


On 2011-07-08, at 9:55 PM, Stephen Skory wrote:

> Elizabeth,
> 
>> 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?
> 
> You can specify the prefix for the file name in the "save()" command:
> 
> pc.save("w_%1.3f_mod_%s_%s" % (width, modifier_string, fn))
> 
> which will get you something like
> "w_0.05_mod_awesome_GT_BTAccel_256AMR4_PeHeat_sf5_SNe_0301_Slice_z_PotentialField.png"
> 
> Is this what you were looking for?
> 
> Good luck!
> 
> -- 
> Stephen Skory
> s at skory.us
> http://stephenskory.com/
> 510.621.3687 (google voice)
> _______________________________________________
> yt-users mailing list
> yt-users at lists.spacepope.org
> http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org




More information about the yt-users mailing list