[yt-svn] commit/yt: 2 new changesets
commits-noreply at bitbucket.org
commits-noreply at bitbucket.org
Mon Jan 23 05:04:51 PST 2017
2 new commits in yt:
https://bitbucket.org/yt_analysis/yt/commits/002a2f67d146/
Changeset: 002a2f67d146
Branch: yt
User: ngoldbaum
Date: 2017-01-22 16:23:36+00:00
Summary: Ensure fields are contiguous arrays before being passed to process_octree.
Closes #1312
Affected #: 1 file
diff -r fc3d1369fd2821a203b0bae4b94b53915254f468 -r 002a2f67d14648a127f6aba4d5990f31a7acd7d4 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()
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