[Yt-svn] yt-commit r1663 - branches/yt-1.6/yt
joishi at wrangler.dreamhost.com
joishi at wrangler.dreamhost.com
Tue Mar 16 17:55:30 PDT 2010
Author: joishi
Date: Tue Mar 16 17:55:29 2010
New Revision: 1663
URL: http://yt.enzotools.org/changeset/1663
Log:
updated fix_pf for orion in 1.6
Modified:
branches/yt-1.6/yt/recipes.py
Modified: branches/yt-1.6/yt/recipes.py
==============================================================================
--- branches/yt-1.6/yt/recipes.py (original)
+++ branches/yt-1.6/yt/recipes.py Tue Mar 16 17:55:29 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