[Yt-svn] yt-commit r1808 - trunk/yt/lagos
mturk at wrangler.dreamhost.com
mturk at wrangler.dreamhost.com
Tue Aug 10 16:08:11 PDT 2010
Author: mturk
Date: Tue Aug 10 16:08:10 2010
New Revision: 1808
URL: http://yt.enzotools.org/changeset/1808
Log:
Fixing OutputTypes's usage of the load command in Gadget
Modified:
trunk/yt/lagos/OutputTypes.py
Modified: trunk/yt/lagos/OutputTypes.py
==============================================================================
--- trunk/yt/lagos/OutputTypes.py (original)
+++ trunk/yt/lagos/OutputTypes.py Tue Aug 10 16:08:10 2010
@@ -503,7 +503,7 @@
return f
@classmethod
- def _is_valid(self, *args, **kwargs):
+ def _is_valid(cls, *args, **kwargs):
# fill our args
pname = args[0].rstrip("/")
dn = os.path.dirname(pname)
@@ -683,7 +683,8 @@
self.conversion_factors[key] = 1.0
- def _is_valid(self):
+ @classmethod
+ def _is_valid(cls, *args, **kwargs):
# check for a /root to exist in the h5 file
try:
h5f=h5py.File(self.h5filename)
More information about the yt-svn
mailing list