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

commits-noreply at bitbucket.org commits-noreply at bitbucket.org
Tue Aug 5 12:44:32 PDT 2014


2 new commits in yt:

https://bitbucket.org/yt_analysis/yt/commits/0b3a6142ec05/
Changeset:   0b3a6142ec05
Branch:      yt
User:        ngoldbaum
Date:        2014-08-05 20:26:59
Summary:     plots: fixing an issue with _switch_ds not properly setting data object centers.
Affected #:  1 file

diff -r 9e50338a7e3706e73a8406b41bb7379d06a7e96e -r 0b3a6142ec0536b3f480a088f84da5eb87a54760 yt/visualization/plot_container.py
--- a/yt/visualization/plot_container.py
+++ b/yt/visualization/plot_container.py
@@ -280,6 +280,7 @@
         name = old_object._type_name
         kwargs = dict((n, getattr(old_object, n))
                       for n in old_object._con_args)
+        kwargs['center'] = getattr(old_object, 'center', None)
         if data_source is not None:
             if name != "proj":
                 raise RuntimeError("The data_source keyword argument "


https://bitbucket.org/yt_analysis/yt/commits/2289aecc3599/
Changeset:   2289aecc3599
Branch:      yt
User:        ngoldbaum
Date:        2014-08-05 20:27:34
Summary:     Fixing an issue with PlotWindow plots created via _switch_ds not having correct units.
Affected #:  1 file

diff -r 0b3a6142ec0536b3f480a088f84da5eb87a54760 -r 2289aecc35992ca9153c06c79fb57be6ecb61bde yt/visualization/plot_container.py
--- a/yt/visualization/plot_container.py
+++ b/yt/visualization/plot_container.py
@@ -290,6 +290,12 @@
         self.ds = new_ds
         self.data_source = new_object
         self._data_valid = self._plot_valid = False
+        for d in 'xyz':
+            lim_name = d+'lim'
+            if hasattr(self, lim_name):
+                lim = getattr(self, lim_name)
+                lim = tuple(new_ds.quan(l.value, str(l.units)) for l in lim)
+                setattr(self, lim_name, lim)
         self._recreate_frb()
         self._setup_plots()

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