[yt-svn] commit/yt: ngoldbaum: Merged in MatthewTurk/yt (pull request #1620)

commits-noreply at bitbucket.org commits-noreply at bitbucket.org
Mon Jun 29 12:43:50 PDT 2015


1 new commit in yt:

https://bitbucket.org/yt_analysis/yt/commits/e69200450e5d/
Changeset:   e69200450e5d
Branch:      yt
User:        ngoldbaum
Date:        2015-06-29 19:43:41+00:00
Summary:     Merged in MatthewTurk/yt (pull request #1620)

Make grids weakly referenced
Affected #:  1 file

diff -r 759d87e4bbb2549e2b50a60413bb1a0399f8d6c7 -r e69200450e5dd5263dd017b35c4e29f84f859b5b yt/geometry/grid_geometry_handler.py
--- a/yt/geometry/grid_geometry_handler.py
+++ b/yt/geometry/grid_geometry_handler.py
@@ -286,7 +286,7 @@
             return g.filename
         if dobj._type_name == "grid":
             dobj._chunk_info = np.empty(1, dtype='object')
-            dobj._chunk_info[0] = dobj
+            dobj._chunk_info[0] = weakref.proxy(dobj)
         elif getattr(dobj, "_grids", None) is None:
             gi = dobj.selector.select_grids(self.grid_left_edge,
                                             self.grid_right_edge,

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