[yt-svn] commit/yt: samskillman: Fixing for when north_vector is not specified by the user, while also preserving rotation functionality.
Bitbucket
commits-noreply at bitbucket.org
Fri Dec 21 15:15:57 PST 2012
1 new commit in yt:
https://bitbucket.org/yt_analysis/yt/changeset/55c18d508f76/
changeset: 55c18d508f76
branch: yt
user: samskillman
date: 2012-12-22 00:14:12
summary: Fixing for when north_vector is not specified by the user, while also preserving rotation functionality.
affected #: 1 file
diff -r 1d6aeed04e247b02a2fd8474451b20c1f95572f3 -r 55c18d508f76d062521fba375288b214e937e3ab yt/utilities/orientation.py
--- a/yt/utilities/orientation.py
+++ b/yt/utilities/orientation.py
@@ -58,6 +58,8 @@
if north_vector is not None: self.steady_north = True
self.north_vector = north_vector
self._setup_normalized_vectors(normal_vector, north_vector)
+ if self.north_vector is None:
+ self.north_vector = self.unit_vectors[1]
def _setup_normalized_vectors(self, normal_vector, north_vector):
# Now we set up our various vectors
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