[yt-svn] commit/yt: 2 new changesets
commits-noreply at bitbucket.org
commits-noreply at bitbucket.org
Wed Jun 15 11:31:48 PDT 2016
2 new commits in yt:
https://bitbucket.org/yt_analysis/yt/commits/5a7efce06ba4/
Changeset: 5a7efce06ba4
Branch: yt
User: MatthewTurk
Date: 2016-06-09 16:46:12+00:00
Summary: This enables modification of image_axis_name on the fly.
Affected #: 1 file
diff -r e72c72f56fb7e5922d5d1958636cc0d90372a4cf -r 5a7efce06ba41fec661cd3c0087ab41cd8e9879d yt/geometry/coordinates/coordinate_handler.py
--- a/yt/geometry/coordinates/coordinate_handler.py
+++ b/yt/geometry/coordinates/coordinate_handler.py
@@ -132,10 +132,13 @@
self._axis_id = ai
return ai
+ _image_axis_name = None
@property
def image_axis_name(self):
# Default
- rv = {}
+ if self._image_axis_name is not None:
+ return self._image_axis_name
+ self._image_axis_name = rv = {}
for i in range(3):
rv[i] = (self.axis_name[self.x_axis[i]],
self.axis_name[self.y_axis[i]])
https://bitbucket.org/yt_analysis/yt/commits/8308ef0bf6d6/
Changeset: 8308ef0bf6d6
Branch: yt
User: ngoldbaum
Date: 2016-06-15 18:31:32+00:00
Summary: Merged in MatthewTurk/yt (pull request #2221)
Enable modification of image axis names in coordinate handlers
Affected #: 1 file
diff -r 4ee890dd9b6545904b987a19eb0abc6f93ba55d1 -r 8308ef0bf6d6c8bef092842a4eeb3f4734416cff yt/geometry/coordinates/coordinate_handler.py
--- a/yt/geometry/coordinates/coordinate_handler.py
+++ b/yt/geometry/coordinates/coordinate_handler.py
@@ -133,10 +133,13 @@
self._axis_id = ai
return ai
+ _image_axis_name = None
@property
def image_axis_name(self):
# Default
- rv = {}
+ if self._image_axis_name is not None:
+ return self._image_axis_name
+ self._image_axis_name = rv = {}
for i in range(3):
rv[i] = (self.axis_name[self.x_axis[i]],
self.axis_name[self.y_axis[i]])
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