[yt-svn] commit/yt-3.0: ngoldbaum: typo fix in particle selection for enzo 3.0

commits-noreply at bitbucket.org commits-noreply at bitbucket.org
Wed Apr 17 04:28:00 PDT 2013


1 new commit in yt-3.0:

https://bitbucket.org/yt_analysis/yt-3.0/commits/d48a016b4b8c/
Changeset:   d48a016b4b8c
Branch:      yt-3.0
User:        ngoldbaum
Date:        2013-04-17 07:09:46
Summary:     typo fix in particle selection for enzo 3.0
Affected #:  1 file

diff -r ae0003cdf0a5c5c11d3722d37796c67b0b84428a -r d48a016b4b8ce1c8326e23c308fd90789d0b4ec0 yt/frontends/enzo/io.py
--- a/yt/frontends/enzo/io.py
+++ b/yt/frontends/enzo/io.py
@@ -50,7 +50,6 @@
         return (exceptions.KeyError, hdf5_light_reader.ReadingError)
 
     def _read_particle_selection_by_type(self, chunks, selector, fields):
-        # Active particles don't have the particle_ prefix.
         rv = {}
         ptypes = list(set([ftype for ftype, fname in fields]))
         fields = list(set(fields))
@@ -94,7 +93,7 @@
         # Now we have to do something unpleasant
         if any((ftype != "all" for ftype, fname in fields)):
             type_fields = [(ftype, fname) for ftype, fname in fields
-                           if ftype != all]
+                           if ftype != "all"]
             rv.update(self._read_particle_selection_by_type(
                       chunks, selector, type_fields))
             if len(rv) == len(fields): return rv

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