[yt-svn] commit/yt: xarthisius: Merged in ngoldbaum/yt (pull request #2498)

commits-noreply at bitbucket.org commits-noreply at bitbucket.org
Mon Jan 23 05:04:49 PST 2017


1 new commit in yt:

https://bitbucket.org/yt_analysis/yt/commits/b8437fc05d8a/
Changeset:   b8437fc05d8a
Branch:      yt
User:        xarthisius
Date:        2017-01-23 13:04:22+00:00
Summary:     Merged in ngoldbaum/yt (pull request #2498)

Ensure fields are contiguous arrays before being passed to process_octree. Closes #1312
Affected #:  1 file

diff -r aff15ee0df315855e0afe6b8f8cfecbc8ce8a0a0 -r b8437fc05d8a13b5bdc6df93fb52a1f85f084cc6 yt/data_objects/octree_subset.py
--- a/yt/data_objects/octree_subset.py
+++ b/yt/data_objects/octree_subset.py
@@ -190,7 +190,7 @@
                          dtype="float64")
         # We should not need the following if we know in advance all our fields
         # need no casting.
-        fields = [np.asarray(f, dtype="float64") for f in fields]
+        fields = [np.ascontiguousarray(f, dtype="float64") for f in fields]
         op.process_octree(self.oct_handler, self.domain_ind, pos, fields,
             self.domain_id, self._domain_offset)
         vals = op.finalize()

Repository URL: https://bitbucket.org/yt_analysis/yt/

--

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