[yt-svn] commit/yt-3.0: MatthewTurk: Fix for SPH datasets and a hotfix for ARTIO Cython speed.
commits-noreply at bitbucket.org
commits-noreply at bitbucket.org
Mon Sep 9 13:14:06 PDT 2013
1 new commit in yt-3.0:
https://bitbucket.org/yt_analysis/yt-3.0/commits/f8c52554df0d/
Changeset: f8c52554df0d
Branch: yt-3.0
User: MatthewTurk
Date: 2013-09-09 22:10:59
Summary: Fix for SPH datasets and a hotfix for ARTIO Cython speed.
Affected #: 3 files
diff -r f462e06e6a772cd5277184469803c52404d1ea12 -r f8c52554df0d446ee7a95319cd97d695bdb94243 yt/frontends/artio/_artio_caller.pyx
--- a/yt/frontends/artio/_artio_caller.pyx
+++ b/yt/frontends/artio/_artio_caller.pyx
@@ -718,6 +718,7 @@
cdef np.ndarray[np.float32_t, ndim=2] source
cdef np.ndarray[np.float64_t, ndim=1] dest
cdef int n, status, i, di, num_oct_levels, nf, ngv, max_level
+ cdef int j, oct_ind, level
cdef np.int64_t sfc
cdef np.float64_t val
cdef artio_fileset_handle *handle = self.artio_handle.handle
diff -r f462e06e6a772cd5277184469803c52404d1ea12 -r f8c52554df0d446ee7a95319cd97d695bdb94243 yt/frontends/sph/data_structures.py
--- a/yt/frontends/sph/data_structures.py
+++ b/yt/frontends/sph/data_structures.py
@@ -275,6 +275,7 @@
def __init__(self, filename, data_style="OWLS", n_ref = 64,
over_refine_factor = 1):
self.storage_filename = None
+ filename = os.path.abspath(filename)
super(OWLSStaticOutput, self).__init__(
filename, data_style,
unit_base = None, n_ref = n_ref,
diff -r f462e06e6a772cd5277184469803c52404d1ea12 -r f8c52554df0d446ee7a95319cd97d695bdb94243 yt/utilities/answer_testing/framework.py
--- a/yt/utilities/answer_testing/framework.py
+++ b/yt/utilities/answer_testing/framework.py
@@ -394,7 +394,7 @@
return np.array([avg, mi, ma])
def compare(self, new_result, old_result):
- err_msg = "Field values for %s not equal." % self.field
+ err_msg = "Field values for %s not equal." % (self.field,)
if self.decimals is None:
assert_equal(new_result, old_result,
err_msg=err_msg, verbose=True)
Repository URL: https://bitbucket.org/yt_analysis/yt-3.0/
--
This is a commit notification from bitbucket.org. You are receiving
this because you have the service enabled, addressing the recipient of
this email.
More information about the yt-svn
mailing list