[yt-svn] commit/yt: 2 new changesets

Bitbucket commits-noreply at bitbucket.org
Mon Jan 14 11:36:47 PST 2013


2 new commits in yt:

https://bitbucket.org/yt_analysis/yt/commits/915e0aac6bd9/
changeset:   915e0aac6bd9
branch:      yt
user:        brittonsmith
date:        2013-01-14 20:23:59
summary:     Fixing output path logic for halo profiler.
affected #:  1 file

diff -r f3da561a2a8121ffcdcf44a3a2d0ebb5b1a7d87f -r 915e0aac6bd93f37ce1e54b16782959c4e7b871b yt/analysis_modules/halo_profiler/multi_halo_profiler.py
--- a/yt/analysis_modules/halo_profiler/multi_halo_profiler.py
+++ b/yt/analysis_modules/halo_profiler/multi_halo_profiler.py
@@ -281,10 +281,10 @@
         # Create output directories.
         self.output_dir = output_dir
         if output_dir is None:
-            output_dir = '.'
+            self.output_dir = self.pf.fullpath
         else:
             self.__check_directory(output_dir)
-        self.output_dir = os.path.join(output_dir, os.path.basename(self.pf.fullpath))
+            self.output_dir = os.path.join(output_dir, pf.directory)
         self.__check_directory(self.output_dir)
         self.profile_output_dir = os.path.join(self.output_dir, profile_output_dir)
         self.projection_output_dir = os.path.join(self.output_dir, projection_output_dir)


https://bitbucket.org/yt_analysis/yt/commits/a10b27effcf8/
changeset:   a10b27effcf8
branch:      yt
user:        brittonsmith
date:        2013-01-14 20:31:15
summary:     Oops.
affected #:  1 file

diff -r 915e0aac6bd93f37ce1e54b16782959c4e7b871b -r a10b27effcf88e8875dc94f0a240c11b7d07a82b yt/analysis_modules/halo_profiler/multi_halo_profiler.py
--- a/yt/analysis_modules/halo_profiler/multi_halo_profiler.py
+++ b/yt/analysis_modules/halo_profiler/multi_halo_profiler.py
@@ -284,7 +284,7 @@
             self.output_dir = self.pf.fullpath
         else:
             self.__check_directory(output_dir)
-            self.output_dir = os.path.join(output_dir, pf.directory)
+            self.output_dir = os.path.join(output_dir, self.pf.directory)
         self.__check_directory(self.output_dir)
         self.profile_output_dir = os.path.join(self.output_dir, profile_output_dir)
         self.projection_output_dir = os.path.join(self.output_dir, projection_output_dir)

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