[Yt-svn] yt-commit r1330 - trunk/yt/lagos

britton at wrangler.dreamhost.com britton at wrangler.dreamhost.com
Tue Jun 9 16:23:54 PDT 2009


Author: britton
Date: Tue Jun  9 16:23:53 2009
New Revision: 1330
URL: http://yt.spacepope.org/changeset/1330

Log:
yt should no longer try to serialize if h5py import fails.

Yay teamwork!


Modified:
   trunk/yt/lagos/__init__.py

Modified: trunk/yt/lagos/__init__.py
==============================================================================
--- trunk/yt/lagos/__init__.py	(original)
+++ trunk/yt/lagos/__init__.py	Tue Jun  9 16:23:53 2009
@@ -37,9 +37,10 @@
 
 import warnings
 try:
-     import h5py
+    import h5py
 except ImportError:
-    mylog.warning("No h5py. Data serialization will fail.")
+    ytcfg["lagos", "serialization"] = "False"
+    mylog.warning("No h5py. Data serialization disabled.")
 
 from yt.arraytypes import *
 import weakref



More information about the yt-svn mailing list