[Yt-svn] yt-commit r634 - trunk/yt/lagos/hop

mturk at wrangler.dreamhost.com mturk at wrangler.dreamhost.com
Fri Jun 27 14:27:04 PDT 2008


Author: mturk
Date: Fri Jun 27 14:27:03 2008
New Revision: 634
URL: http://yt.spacepope.org/changeset/634

Log:
Sometimes there's not particle_type or creation_time.



Modified:
   trunk/yt/lagos/hop/HopOutput.py

Modified: trunk/yt/lagos/hop/HopOutput.py
==============================================================================
--- trunk/yt/lagos/hop/HopOutput.py	(original)
+++ trunk/yt/lagos/hop/HopOutput.py	Fri Jun 27 14:27:03 2008
@@ -75,7 +75,8 @@
             mylog.debug("Differentiating based on particle type")
             return (self.data_source["particle_type"] == 1)
         else:
-            raise KeyError
+            mylog.warning("No particle_type, no creation_time, so not distinguishing.")
+            return slice(None)
 
     def __parse_output(self):
         unique_ids = na.unique(self.tags)



More information about the yt-svn mailing list