[yt-svn] commit/yt: MatthewTurk: The to_pw method was missing a setting of self.pf. I got confused in the class

Bitbucket commits-noreply at bitbucket.org
Mon Nov 5 12:31:43 PST 2012


1 new commit in yt:


https://bitbucket.org/yt_analysis/yt/changeset/5b89c5ee1aff/
changeset:   5b89c5ee1aff
branch:      yt
user:        MatthewTurk
date:        2012-11-05 21:31:37
summary:     The to_pw method was missing a setting of self.pf.  I got confused in the class
hierarchy last week when I made this change.
affected #:  1 file

diff -r 8e2150167715b63ab413670576ea18a08e9f72bd -r 5b89c5ee1aff0971bde76a52410df526dcb6dde0 yt/visualization/plot_window.py
--- a/yt/visualization/plot_window.py
+++ b/yt/visualization/plot_window.py
@@ -243,6 +243,10 @@
             rendering is used during data deposition.
 
         """
+        if not hasattr(self, "pf"):
+            self.pf = data_source.pf
+            ts = self._initialize_dataset(self.pf) 
+        self.ts = ts
         self._initfinished = False
         self.center = None
         self.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