[yt-svn] commit/yt: ngoldbaum: Fixing an issue with plots created via switch_pf not getting a center for their data source.

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


1 new commit in yt:

https://bitbucket.org/yt_analysis/yt/commits/e0906fc5b6d5/
Changeset:   e0906fc5b6d5
Branch:      yt-2.x
User:        ngoldbaum
Date:        2014-08-05 20:35:29
Summary:     Fixing an issue with plots created via switch_pf not getting a center for their data source.
Affected #:  1 file

diff -r 648481906b50b27c663618ddc530e6886d9253ff -r e0906fc5b6d5b7e44d94f11d5cf58f6ba177369b yt/visualization/plot_container.py
--- a/yt/visualization/plot_container.py
+++ b/yt/visualization/plot_container.py
@@ -246,6 +246,7 @@
         ds = self.data_source
         name = ds._type_name
         kwargs = dict((n, getattr(ds, n)) for n in ds._con_args)
+        kwargs['center'] = getattr(ds, 'center', None)
         new_ds = getattr(new_pf.h, name)(**kwargs)
         self.pf = new_pf
         self.data_source = new_ds

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