[yt-svn] commit/yt-3.0: 3 new changesets

commits-noreply at bitbucket.org commits-noreply at bitbucket.org
Tue May 7 11:29:51 PDT 2013


3 new commits in yt-3.0:

https://bitbucket.org/yt_analysis/yt-3.0/commits/5bdfa420ed4b/
Changeset:   5bdfa420ed4b
Branch:      yt-3.0
User:        ngoldbaum
Date:        2013-05-06 08:10:57
Summary:     Active particles: Bail on detecting fields when we can't find any particles.
Affected #:  1 file

diff -r 346c728780cb0a4607a16608a8706178a51e1bf3 -r 5bdfa420ed4b007621ad600d98a8da5fa8a18ad9 yt/frontends/enzo/data_structures.py
--- a/yt/frontends/enzo/data_structures.py
+++ b/yt/frontends/enzo/data_structures.py
@@ -417,6 +417,8 @@
         fields = []
         for ptype in self.parameter_file["AppendActiveParticleType"]:
             select_grids = self.grid_active_particle_count[ptype].flat
+            if np.any(select_grids) == False:
+                continue
             gs = self.grids[select_grids > 0]
             g = gs[0]
             handle = h5py.File(g.filename)


https://bitbucket.org/yt_analysis/yt-3.0/commits/f2fa53e572bc/
Changeset:   f2fa53e572bc
Branch:      yt-3.0
User:        ngoldbaum
Date:        2013-05-06 08:13:55
Summary:     fortran_utils: remove debug print statement.
Affected #:  1 file

diff -r 346c728780cb0a4607a16608a8706178a51e1bf3 -r f2fa53e572bca4023ecdf3b960880047b74dc131 yt/utilities/fortran_utils.py
--- a/yt/utilities/fortran_utils.py
+++ b/yt/utilities/fortran_utils.py
@@ -81,8 +81,6 @@
         s2 = vals.pop(0)
         if s1 != s2:
             size = struct.calcsize(endian + "I" + "".join(n*[t]) + "I")
-            print "S1 = %s ; S2 = %s ; %s %s %s = %s" % (
-                    s1, s2, a, n, t, size)
         assert(s1 == s2)
         if n == 1: v = v[0]
         if type(a)==tuple:


https://bitbucket.org/yt_analysis/yt-3.0/commits/37e213d586c9/
Changeset:   37e213d586c9
Branch:      yt-3.0
User:        ngoldbaum
Date:        2013-05-06 08:14:04
Summary:     Merging.
Affected #:  1 file

diff -r f2fa53e572bca4023ecdf3b960880047b74dc131 -r 37e213d586c9e89550f44941db8804504b757d72 yt/frontends/enzo/data_structures.py
--- a/yt/frontends/enzo/data_structures.py
+++ b/yt/frontends/enzo/data_structures.py
@@ -417,6 +417,8 @@
         fields = []
         for ptype in self.parameter_file["AppendActiveParticleType"]:
             select_grids = self.grid_active_particle_count[ptype].flat
+            if np.any(select_grids) == False:
+                continue
             gs = self.grids[select_grids > 0]
             g = gs[0]
             handle = h5py.File(g.filename)

Repository URL: https://bitbucket.org/yt_analysis/yt-3.0/

--

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