[yt-svn] commit/yt: ngoldbaum: Only interpret save string as a directory if it is not the dataset name.

commits-noreply at bitbucket.org commits-noreply at bitbucket.org
Mon Jan 13 12:37:57 PST 2014


1 new commit in yt:

https://bitbucket.org/yt_analysis/yt/commits/135d9107b38e/
Changeset:   135d9107b38e
Branch:      yt-3.0
User:        ngoldbaum
Date:        2014-01-13 21:25:48
Summary:     Only interpret save string as a directory if it is not the dataset name.

Closes #761.

Since dataset names are sometimes directories, this is necessary.
Affected #:  1 file

diff -r c690a3e1a6b7fd8caf6a4e2571f6d960caecd6af -r 135d9107b38ea58063d8558f20bdc07a3d9e2aa2 yt/visualization/plot_container.py
--- a/yt/visualization/plot_container.py
+++ b/yt/visualization/plot_container.py
@@ -386,7 +386,7 @@
         name = os.path.expanduser(name)
         if name[-1] == os.sep and not os.path.isdir(name):
             os.mkdir(name)
-        if os.path.isdir(name):
+        if os.path.isdir(name) and name != str(self.pf):
             name = name + (os.sep if name[-1] != os.sep else '') + str(self.pf)
         suffix = get_image_suffix(name)
         if suffix != '':

Repository URL: https://bitbucket.org/yt_analysis/yt/

--

This is a commit notification from bitbucket.org. You are receiving
this because you have the service enabled, addressing the recipient of
this email.



More information about the yt-svn mailing list