[yt-svn] commit/yt: MatthewTurk: Removing 'self' from the get_rotation_matrix argument list.

Bitbucket commits-noreply at bitbucket.org
Thu Jun 21 03:05:59 PDT 2012


1 new commit in yt:


https://bitbucket.org/yt_analysis/yt/changeset/f2a1a5d384de/
changeset:   f2a1a5d384de
branch:      yt
user:        MatthewTurk
date:        2012-06-21 12:05:35
summary:     Removing 'self' from the get_rotation_matrix argument list.
affected #:  2 files

diff -r f1b54858bcd88741c1f3dd4c3956e4aae4ad6688 -r f2a1a5d384dec9014d12bccee925ae14194312e5 yt/utilities/math_utils.py
--- a/yt/utilities/math_utils.py
+++ b/yt/utilities/math_utils.py
@@ -620,7 +620,7 @@
         result.append(na.mean(sorted[indexer], axis=axis, out=out))
     return na.array(result)
 
-def get_rotation_matrix(self, theta, rot_vector):
+def get_rotation_matrix(theta, rot_vector):
     ux = rot_vector[0]
     uy = rot_vector[1]
     uz = rot_vector[2]


diff -r f1b54858bcd88741c1f3dd4c3956e4aae4ad6688 -r f2a1a5d384dec9014d12bccee925ae14194312e5 yt/visualization/volume_rendering/camera.py
--- a/yt/visualization/volume_rendering/camera.py
+++ b/yt/visualization/volume_rendering/camera.py
@@ -526,7 +526,7 @@
         if rot_vector is None:
             rot_vector = self.rotation_vector
           
-        R = get_rotation_matrix(self, theta, rot_vector)
+        R = get_rotation_matrix(theta, rot_vector)
 
         normal_vector = self.front_center-self.center
 
@@ -548,7 +548,7 @@
         >>> cam.roll(na.pi/4)
         """
         rot_vector = self.orienter.normal_vector
-        R = get_rotation_matrix(self, theta, rot_vector)
+        R = get_rotation_matrix(theta, rot_vector)
         north_vector = self.orienter.north_vector
         self.switch_view(north_vector=na.dot(R, north_vector))
 
@@ -1164,7 +1164,7 @@
             rot_vector = na.cross(rvec, self.normal_vector)
             rot_vector /= (rot_vector**2).sum()**0.5
             
-            self.rotation_matrix = get_rotation_matrix(self,angle,rot_vector)
+            self.rotation_matrix = get_rotation_matrix(angle,rot_vector)
             self.normal_vector = na.dot(self.rotation_matrix,self.normal_vector)
             self.north_vector = na.dot(self.rotation_matrix,self.north_vector)
             self.east_vector = na.dot(self.rotation_matrix,self.east_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