[yt-svn] commit/yt: ngoldbaum: Merged in xarthisius/yt (pull request #2096)
commits-noreply at bitbucket.org
commits-noreply at bitbucket.org
Wed Mar 30 11:25:03 PDT 2016
1 new commit in yt:
https://bitbucket.org/yt_analysis/yt/commits/c9a19dd7d6e6/
Changeset: c9a19dd7d6e6
Branch: yt
User: ngoldbaum
Date: 2016-03-30 18:24:56+00:00
Summary: Merged in xarthisius/yt (pull request #2096)
[bugfix,py3] evaluate iterators in AMRKDTree.set_fields
Affected #: 1 file
diff -r a307a8a744455f53b0fb2339dc551ea9d37d3d8d -r c9a19dd7d6e63996b30850bf9660203d64e6b5b8 yt/utilities/amr_kdtree/amr_kdtree.py
--- a/yt/utilities/amr_kdtree/amr_kdtree.py
+++ b/yt/utilities/amr_kdtree/amr_kdtree.py
@@ -190,7 +190,7 @@
self.fields = new_fields
if self.log_fields is not None and not regenerate_data:
- flip_log = map(operator.ne, self.log_fields, log_fields)
+ flip_log = list(map(operator.ne, self.log_fields, log_fields))
else:
flip_log = [False] * len(log_fields)
self.log_fields = log_fields
@@ -201,7 +201,7 @@
bricks = []
for b in self.traverse():
- map(_apply_log, b.my_data, flip_log, log_fields)
+ list(map(_apply_log, b.my_data, flip_log, log_fields))
bricks.append(b)
self.bricks = np.array(bricks)
self.brick_dimensions = np.array(self.brick_dimensions)
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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.spacepope.org/pipermail/yt-svn-spacepope.org/attachments/20160330/e19479c3/attachment.htm>
More information about the yt-svn
mailing list