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

commits-noreply at bitbucket.org commits-noreply at bitbucket.org
Tue Jul 23 18:58:18 PDT 2013


6 new commits in yt:

https://bitbucket.org/yt_analysis/yt/commits/f6b83a026bb9/
Changeset:   f6b83a026bb9
Branch:      yt
User:        atmyers
Date:        2013-07-23 02:57:07
Summary:     small correction to some plot_window docstrings
Affected #:  1 file

diff -r e3e4f4578504b7eb2e929275ad8441ef3900572c -r f6b83a026bb98e369da718e3c959174243d7d04e yt/visualization/plot_window.py
--- a/yt/visualization/plot_window.py
+++ b/yt/visualization/plot_window.py
@@ -702,7 +702,7 @@
                             'ParticleCallback','ClumpContourCallback',
                             'GridBoundaryCallback']
             if self._plot_type == 'OffAxisProjection':
-                ignored += ['VelocityCallback','MagFieldCallback',
+                ignored += ['MagFieldCallback',
                             'QuiverCallback','CuttingQuiverCallback',
                             'StreamlineCallback']
             if key in ignored:
@@ -1137,12 +1137,10 @@
          or the axis name itself
     fields : string
          The name of the field(s) to be plotted.
-    center : two or three-element vector of sequence floats, 'c', or 'center', or 'max'
-         The coordinate of the center of the image.  If left blank,
-         the image centers on the location of the maximum density
-         cell.  If set to 'c' or 'center', the plot is centered on
-         the middle of the domain.  If set to 'max', will be at the point
-         of highest density.
+    center : two or three-element vector of sequence floats, 'c', or 'center', or 'max'.
+         The coordinate of the center of the image. If set to 'c' or 'center' or 
+         left blank, the plot is centered on the middle of the domain.  If set to 'max', 
+         the center will be at the point of highest density.
     width : tuple or a float.
          Width can have four different formats to support windows with variable
          x and y widths.  They are:
@@ -1247,12 +1245,10 @@
          or the axis name itself
     fields : string
         The name of the field(s) to be plotted.
-    center : two or three-element vector of sequence floats, 'c', or 'center', or 'max'
-         The coordinate of the center of the image.  If left blank,
-         the image centers on the location of the maximum density
-         cell.  If set to 'c' or 'center', the plot is centered on
-         the middle of the domain.  If set to 'max', will be at the point
-         of highest density.
+    center : two or three-element vector of sequence floats, 'c', or 'center', or 'max'.
+         The coordinate of the center of the image. If set to 'c' or 'center' or 
+         left blank, the plot is centered on the middle of the domain.  If set to 'max', 
+         the center will be at the point of highest density.
     width : tuple or a float.
          Width can have four different formats to support windows with variable
          x and y widths.  They are:
@@ -1366,10 +1362,8 @@
     fields : string
         The name of the field(s) to be plotted.
     center : A two or three-element vector of sequence floats, 'c', or 'center'
-        The coordinate of the center of the image.  If left blank,
-        the image centers on the location of the maximum density
-        cell.  If set to 'c' or 'center', the plot is centered on
-        the middle of the domain.
+        The coordinate of the center of the image. If set to 'c' or 'center' or 
+        left blank, the plot is centered on the middle of the domain.
     width : A tuple or a float
         A tuple containing the width of image and the string key of
         the unit: (width, 'unit').  If set to a float, code units
@@ -1429,6 +1423,13 @@
         self.re = re
         self.north_vector = north_vector
 
+    def __getitem__(self, item):
+        lo = self.center - 0.5*self.width
+        hi = self.center + 0.5*self.width
+        bounds = [lo[0], hi[0], lo[1], hi[1], lo[2], hi[2]]
+        frb = OffAxisProjectionFixedResolutionBuffer(self, bounds, self.resolution)
+        return frb[item]
+
 class OffAxisProjectionPlot(PWViewerMPL):
     r"""Creates an off axis projection plot from a parameter file
 
@@ -1449,10 +1450,8 @@
     fields : string
         The name of the field(s) to be plotted.
     center : A two or three-element vector of sequence floats, 'c', or 'center'
-        The coordinate of the center of the image.  If left blank,
-        the image centers on the location of the maximum density
-        cell.  If set to 'c' or 'center', the plot is centered on
-        the middle of the domain.
+        The coordinate of the center of the image. If set to 'c' or 'center' or 
+        left blank, the plot is centered on the middle of the domain.
     width : tuple or a float.
          Width can have four different formats to support windows with variable
          x and y widths.  They are:


https://bitbucket.org/yt_analysis/yt/commits/4f24028ef60c/
Changeset:   4f24028ef60c
Branch:      yt
User:        atmyers
Date:        2013-07-23 03:00:13
Summary:     reverting out a change I made by mistake
Affected #:  1 file

diff -r f6b83a026bb98e369da718e3c959174243d7d04e -r 4f24028ef60cf24792e3263d316cbcf6436c8328 yt/visualization/plot_window.py
--- a/yt/visualization/plot_window.py
+++ b/yt/visualization/plot_window.py
@@ -702,7 +702,7 @@
                             'ParticleCallback','ClumpContourCallback',
                             'GridBoundaryCallback']
             if self._plot_type == 'OffAxisProjection':
-                ignored += ['MagFieldCallback',
+                ignored += ['VelocityCallback','MagFieldCallback',
                             'QuiverCallback','CuttingQuiverCallback',
                             'StreamlineCallback']
             if key in ignored:


https://bitbucket.org/yt_analysis/yt/commits/437303af3687/
Changeset:   437303af3687
Branch:      yt
User:        atmyers
Date:        2013-07-23 03:01:51
Summary:     pointless fiddling
Affected #:  1 file

diff -r 4f24028ef60cf24792e3263d316cbcf6436c8328 -r 437303af368711f854c79ba98b0b3d42dbbccdb2 yt/visualization/plot_window.py
--- a/yt/visualization/plot_window.py
+++ b/yt/visualization/plot_window.py
@@ -1138,7 +1138,7 @@
     fields : string
          The name of the field(s) to be plotted.
     center : two or three-element vector of sequence floats, 'c', or 'center', or 'max'.
-         The coordinate of the center of the image. If set to 'c' or 'center' or 
+         The coordinate of the center of the image. If set to 'c', 'center' or 
          left blank, the plot is centered on the middle of the domain.  If set to 'max', 
          the center will be at the point of highest density.
     width : tuple or a float.
@@ -1246,7 +1246,7 @@
     fields : string
         The name of the field(s) to be plotted.
     center : two or three-element vector of sequence floats, 'c', or 'center', or 'max'.
-         The coordinate of the center of the image. If set to 'c' or 'center' or 
+         The coordinate of the center of the image. If set to 'c', 'center' or 
          left blank, the plot is centered on the middle of the domain.  If set to 'max', 
          the center will be at the point of highest density.
     width : tuple or a float.
@@ -1362,7 +1362,7 @@
     fields : string
         The name of the field(s) to be plotted.
     center : A two or three-element vector of sequence floats, 'c', or 'center'
-        The coordinate of the center of the image. If set to 'c' or 'center' or 
+        The coordinate of the center of the image. If set to 'c', 'center' or 
         left blank, the plot is centered on the middle of the domain.
     width : A tuple or a float
         A tuple containing the width of image and the string key of
@@ -1450,7 +1450,7 @@
     fields : string
         The name of the field(s) to be plotted.
     center : A two or three-element vector of sequence floats, 'c', or 'center'
-        The coordinate of the center of the image. If set to 'c' or 'center' or 
+        The coordinate of the center of the image. If set to 'c', 'center' or 
         left blank, the plot is centered on the middle of the domain.
     width : tuple or a float.
          Width can have four different formats to support windows with variable


https://bitbucket.org/yt_analysis/yt/commits/32c7b44cfa83/
Changeset:   32c7b44cfa83
Branch:      yt
User:        atmyers
Date:        2013-07-23 04:28:46
Summary:     removing __getitem__ from OffAxisProjectionDummyDataSource, which I included in this PR by mistake
Affected #:  1 file

diff -r 437303af368711f854c79ba98b0b3d42dbbccdb2 -r 32c7b44cfa837a0c39962bde10900d0707fbe4aa yt/visualization/plot_window.py
--- a/yt/visualization/plot_window.py
+++ b/yt/visualization/plot_window.py
@@ -1423,13 +1423,6 @@
         self.re = re
         self.north_vector = north_vector
 
-    def __getitem__(self, item):
-        lo = self.center - 0.5*self.width
-        hi = self.center + 0.5*self.width
-        bounds = [lo[0], hi[0], lo[1], hi[1], lo[2], hi[2]]
-        frb = OffAxisProjectionFixedResolutionBuffer(self, bounds, self.resolution)
-        return frb[item]
-
 class OffAxisProjectionPlot(PWViewerMPL):
     r"""Creates an off axis projection plot from a parameter file
 


https://bitbucket.org/yt_analysis/yt/commits/e1234dcf6e2f/
Changeset:   e1234dcf6e2f
Branch:      yt
User:        atmyers
Date:        2013-07-23 04:32:08
Summary:     adding explanations of the 'max' and 'm' options to the docs
Affected #:  1 file

diff -r 32c7b44cfa837a0c39962bde10900d0707fbe4aa -r e1234dcf6e2f1a5a1f2f85e7522c2e8d61056bf7 yt/visualization/plot_window.py
--- a/yt/visualization/plot_window.py
+++ b/yt/visualization/plot_window.py
@@ -1139,8 +1139,8 @@
          The name of the field(s) to be plotted.
     center : two or three-element vector of sequence floats, 'c', or 'center', or 'max'.
          The coordinate of the center of the image. If set to 'c', 'center' or 
-         left blank, the plot is centered on the middle of the domain.  If set to 'max', 
-         the center will be at the point of highest density.
+         left blank, the plot is centered on the middle of the domain. If set to 'max' 
+         or 'm', the center will be at the point of highest density.
     width : tuple or a float.
          Width can have four different formats to support windows with variable
          x and y widths.  They are:
@@ -1247,8 +1247,8 @@
         The name of the field(s) to be plotted.
     center : two or three-element vector of sequence floats, 'c', or 'center', or 'max'.
          The coordinate of the center of the image. If set to 'c', 'center' or 
-         left blank, the plot is centered on the middle of the domain.  If set to 'max', 
-         the center will be at the point of highest density.
+         left blank, the plot is centered on the middle of the domain. If set to 'max' 
+         or 'm', the center will be at the point of highest density.
     width : tuple or a float.
          Width can have four different formats to support windows with variable
          x and y widths.  They are:
@@ -1363,7 +1363,8 @@
         The name of the field(s) to be plotted.
     center : A two or three-element vector of sequence floats, 'c', or 'center'
         The coordinate of the center of the image. If set to 'c', 'center' or 
-        left blank, the plot is centered on the middle of the domain.
+        left blank, the plot is centered on the middle of the domain. If set to
+        'max' or 'm', the center will be at the point of highest density.
     width : A tuple or a float
         A tuple containing the width of image and the string key of
         the unit: (width, 'unit').  If set to a float, code units
@@ -1444,7 +1445,8 @@
         The name of the field(s) to be plotted.
     center : A two or three-element vector of sequence floats, 'c', or 'center'
         The coordinate of the center of the image. If set to 'c', 'center' or 
-        left blank, the plot is centered on the middle of the domain.
+        left blank, the plot is centered on the middle of the domain. If set to
+        'max' or 'm', the center will be at the point of highest density.
     width : tuple or a float.
          Width can have four different formats to support windows with variable
          x and y widths.  They are:


https://bitbucket.org/yt_analysis/yt/commits/f8fbed2bf4fa/
Changeset:   f8fbed2bf4fa
Branch:      yt
User:        atmyers
Date:        2013-07-23 04:35:31
Summary:     one more change to the docs
Affected #:  1 file

diff -r e1234dcf6e2f1a5a1f2f85e7522c2e8d61056bf7 -r f8fbed2bf4fa4d2dcc28d3ae407aea6efc880bcf yt/visualization/plot_window.py
--- a/yt/visualization/plot_window.py
+++ b/yt/visualization/plot_window.py
@@ -1137,10 +1137,11 @@
          or the axis name itself
     fields : string
          The name of the field(s) to be plotted.
-    center : two or three-element vector of sequence floats, 'c', or 'center', or 'max'.
-         The coordinate of the center of the image. If set to 'c', 'center' or 
-         left blank, the plot is centered on the middle of the domain. If set to 'max' 
-         or 'm', the center will be at the point of highest density.
+    center : two or three-element vector of sequence floats, or one of 'c', 
+         'center', 'max' or 'm'. The coordinate of the center of the image. 
+         If set to 'c', 'center' or left blank, the plot is centered on the
+         middle of the domain. If set to 'max' or 'm', the center will be at 
+         the point of highest density.
     width : tuple or a float.
          Width can have four different formats to support windows with variable
          x and y widths.  They are:
@@ -1245,11 +1246,11 @@
          or the axis name itself
     fields : string
         The name of the field(s) to be plotted.
-    center : two or three-element vector of sequence floats, 'c', or 'center', or 'max'.
-         The coordinate of the center of the image. If set to 'c', 'center' or 
-         left blank, the plot is centered on the middle of the domain. If set to 'max' 
-         or 'm', the center will be at the point of highest density.
-    width : tuple or a float.
+    center : two or three-element vector of sequence floats, or one of 'c', 
+         'center', 'max' or 'm'. The coordinate of the center of the image. 
+         If set to 'c', 'center' or left blank, the plot is centered on the
+         middle of the domain. If set to 'max' or 'm', the center will be at 
+         the point of highest density.
          Width can have four different formats to support windows with variable
          x and y widths.  They are:
 
@@ -1361,10 +1362,11 @@
         The vector normal to the slicing plane.
     fields : string
         The name of the field(s) to be plotted.
-    center : A two or three-element vector of sequence floats, 'c', or 'center'
-        The coordinate of the center of the image. If set to 'c', 'center' or 
-        left blank, the plot is centered on the middle of the domain. If set to
-        'max' or 'm', the center will be at the point of highest density.
+    center : two or three-element vector of sequence floats, or one of 'c', 
+         'center', 'max' or 'm'. The coordinate of the center of the image. 
+         If set to 'c', 'center' or left blank, the plot is centered on the
+         middle of the domain. If set to 'max' or 'm', the center will be at 
+         the point of highest density.
     width : A tuple or a float
         A tuple containing the width of image and the string key of
         the unit: (width, 'unit').  If set to a float, code units
@@ -1443,10 +1445,11 @@
         The vector normal to the slicing plane.
     fields : string
         The name of the field(s) to be plotted.
-    center : A two or three-element vector of sequence floats, 'c', or 'center'
-        The coordinate of the center of the image. If set to 'c', 'center' or 
-        left blank, the plot is centered on the middle of the domain. If set to
-        'max' or 'm', the center will be at the point of highest density.
+    center : two or three-element vector of sequence floats, or one of 'c', 
+         'center', 'max' or 'm'. The coordinate of the center of the image. 
+         If set to 'c', 'center' or left blank, the plot is centered on the
+         middle of the domain. If set to 'max' or 'm', the center will be at 
+         the point of highest density.
     width : tuple or a float.
          Width can have four different formats to support windows with variable
          x and y widths.  They are:

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