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

Bitbucket commits-noreply at bitbucket.org
Thu Feb 7 14:35:13 PST 2013


3 new commits in yt:

https://bitbucket.org/yt_analysis/yt/commits/c539bc060a43/
changeset:   c539bc060a43
branch:      yt
user:        samskillman
date:        2013-02-07 23:25:06
summary:     Fixes for off_axis_projection.
affected #:  1 file

diff -r 2f54217d37d8fdf8a42d24eb70e21f092e423e75 -r c539bc060a438f46745708cfbe9d6ad154bcbf47 yt/visualization/volume_rendering/camera.py
--- a/yt/visualization/volume_rendering/camera.py
+++ b/yt/visualization/volume_rendering/camera.py
@@ -2120,6 +2120,7 @@
             image *= dl
         else:
             image[:,:,0] /= image[:,:,1]
+
         return image[:,:,0]
 
 
@@ -2127,8 +2128,10 @@
         # Calculate the eight corners of the box
         # Back corners ...
         if self.interpolated:
-            return Camera._render(self, double_check, num_threads, image,
+            image = Camera._render(self, double_check, num_threads, image,
                     sampler)
+            image = self.finalize_image(image)
+            return image
         pf = self.pf
         width = self.width[2]
         north_vector = self.orienter.unit_vectors[0]
@@ -2161,8 +2164,7 @@
             pb.update(i)
         pb.finish()
 
-        image = sampler.aimage
-        self.finalize_image(image)
+        image = self.finalize_image(sampler.aimage)
         return image
 
     def save_image(self, fn, clip_ratio, image):
@@ -2273,5 +2275,5 @@
     if weight is not None:
         pf.field_info.pop("temp_weightfield")
     del projcam
-    return image[:,:,0]
+    return image[:,:]
 


https://bitbucket.org/yt_analysis/yt/commits/3bfc1524212d/
changeset:   3bfc1524212d
branch:      yt
user:        samskillman
date:        2013-02-07 23:25:43
summary:     Merging
affected #:  1 file

diff -r c539bc060a438f46745708cfbe9d6ad154bcbf47 -r 3bfc1524212d486c84f050c9a3a07605615f19ab yt/frontends/flash/data_structures.py
--- a/yt/frontends/flash/data_structures.py
+++ b/yt/frontends/flash/data_structures.py
@@ -451,7 +451,7 @@
         self.current_time = self.parameters["time"]
 
         # Determine if this is a periodic box
-        p = [self.parameters.get("%sl_boundary_type" % ax, None) == Periodic for ax in 'xyz']
+        p = [self.parameters.get("%sl_boundary_type" % ax, None) == "periodic" for ax in 'xyz']
         self.periodicity = tuple(p)
 
         # Determine cosmological parameters.


https://bitbucket.org/yt_analysis/yt/commits/023d08daede6/
changeset:   023d08daede6
branch:      yt
user:        samskillman
date:        2013-02-07 23:27:03
summary:     A fix to the fix.
affected #:  1 file

diff -r 3bfc1524212d486c84f050c9a3a07605615f19ab -r 023d08daede64ee04aa098c33dbd49ea34189940 yt/visualization/volume_rendering/camera.py
--- a/yt/visualization/volume_rendering/camera.py
+++ b/yt/visualization/volume_rendering/camera.py
@@ -2128,10 +2128,8 @@
         # Calculate the eight corners of the box
         # Back corners ...
         if self.interpolated:
-            image = Camera._render(self, double_check, num_threads, image,
+            return Camera._render(self, double_check, num_threads, image,
                     sampler)
-            image = self.finalize_image(image)
-            return image
         pf = self.pf
         width = self.width[2]
         north_vector = self.orienter.unit_vectors[0]

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