[Yt-svn] yt: Fixing HDF4 reading

hg at spacepope.org hg at spacepope.org
Wed Nov 10 19:00:37 PST 2010


hg Repository: yt
details:   yt/rev/bf9f448289d3
changeset: 3532:bf9f448289d3
user:      Matthew Turk <matthewturk at gmail.com>
date:
Wed Nov 10 19:00:32 2010 -0800
description:
Fixing HDF4 reading

diffstat:

 yt/frontends/enzo/data_structures.py |  4 ++++
 yt/frontends/enzo/io.py              |  5 +++++
 2 files changed, 9 insertions(+), 0 deletions(-)

diffs (29 lines):

diff -r 553a10ce962e -r bf9f448289d3 yt/frontends/enzo/data_structures.py
--- a/yt/frontends/enzo/data_structures.py	Wed Nov 10 16:01:56 2010 -0800
+++ b/yt/frontends/enzo/data_structures.py	Wed Nov 10 19:00:32 2010 -0800
@@ -30,6 +30,10 @@
 import stat
 import string
 import re
+try:
+    from pyhdf_np import SD
+except ImportError:
+    pass
 
 from itertools import izip
 
diff -r 553a10ce962e -r bf9f448289d3 yt/frontends/enzo/io.py
--- a/yt/frontends/enzo/io.py	Wed Nov 10 16:01:56 2010 -0800
+++ b/yt/frontends/enzo/io.py	Wed Nov 10 19:00:32 2010 -0800
@@ -25,6 +25,11 @@
 
 from collections import defaultdict
 
+try:
+    from pyhdf_np import SD
+except ImportError:
+    pass
+
 import exceptions
 import os
 



More information about the yt-svn mailing list