[yt-svn] commit/yt: MatthewTurk: This closes #325.

Bitbucket commits-noreply at bitbucket.org
Mon Nov 14 13:28:52 PST 2011


1 new commit in yt:


https://bitbucket.org/yt_analysis/yt/changeset/f0f9c1d64e79/
changeset:   f0f9c1d64e79
branch:      yt
user:        MatthewTurk
date:        2011-11-14 22:28:41
summary:     This closes #325.
affected #:  1 file

diff -r d73dc0541b193f00e758c77f5fd0b977025acfb5 -r f0f9c1d64e797be3cc80d07eb59e00ce30f5d7e1 yt/visualization/volume_rendering/camera.py
--- a/yt/visualization/volume_rendering/camera.py
+++ b/yt/visualization/volume_rendering/camera.py
@@ -193,6 +193,9 @@
         self.steady_north = steady_north
         self.expand_factor = expand_factor
         # This seems to be necessary for now.  Not sure what goes wrong when not true.
+        if na.all(north_vector == normal_vector):
+            mylog.error("North vector and normal vector are the same.  Disregarding north vector.")
+            north_vector == None
         if north_vector is not None: self.steady_north=True
         self.north_vector = north_vector
         self.rotation_vector = north_vector

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