[Yt-svn] yt-commit r1662 - trunk/yt

joishi at wrangler.dreamhost.com joishi at wrangler.dreamhost.com
Tue Mar 16 16:40:49 PDT 2010


Author: joishi
Date: Tue Mar 16 16:40:49 2010
New Revision: 1662
URL: http://yt.enzotools.org/changeset/1662

Log:
added orion reader to _fix_pf


Modified:
   trunk/yt/recipes.py

Modified: trunk/yt/recipes.py
==============================================================================
--- trunk/yt/recipes.py	(original)
+++ trunk/yt/recipes.py	Tue Mar 16 16:40:49 2010
@@ -48,7 +48,9 @@
         return lagos.EnzoStaticOutput("%s.dir/%s" % (pf,pf))
     elif pf.endswith(".hierarchy"):
         return lagos.EnzoStaticOutput(pf[:-10])
-    # JS will have to implement the Orion one
+    elif os.path.isdir("%s" % pf) and \
+         os.path.exists("%s/Header" % pf):
+        return lagos.OrionStaticOutput(pf)
     else:
         raise IOError(pf)
 



More information about the yt-svn mailing list