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

commits-noreply at bitbucket.org commits-noreply at bitbucket.org
Sat Jul 9 14:16:17 PDT 2016


1 new commit in yt:

https://bitbucket.org/yt_analysis/yt/commits/37c3aa32a7b7/
Changeset:   37c3aa32a7b7
Branch:      yt
User:        MatthewTurk
Date:        2016-07-09 21:15:47+00:00
Summary:     Merged in ngoldbaum/yt (pull request #2260)

Ensure oct fcoords and fwidths always have units attached. Closes #1239
Affected #:  1 file

diff -r b264176ae1527a32714dbd782c7f5a3e79dc993a -r 37c3aa32a7b71a328001f984c5a4a328a46b492e yt/data_objects/octree_subset.py
--- a/yt/data_objects/octree_subset.py
+++ b/yt/data_objects/octree_subset.py
@@ -374,13 +374,15 @@
 
     @cell_count_cache
     def select_fcoords(self, dobj):
-        return self.oct_handler.fcoords(dobj.selector, domain_id = self.domain_id,
-                                        num_cells = self._cell_count)
+        fcoords = self.oct_handler.fcoords(
+            dobj.selector, domain_id=self.domain_id, num_cells=self._cell_count)
+        return self.ds.arr(fcoords, 'code_length')
 
     @cell_count_cache
     def select_fwidth(self, dobj):
-        return self.oct_handler.fwidth(dobj.selector, domain_id = self.domain_id,
-                                       num_cells = self._cell_count)
+        fwidth = self.oct_handler.fwidth(
+            dobj.selector, domain_id=self.domain_id, num_cells=self._cell_count)
+        return self.ds.arr(fwidth, 'code_length')
 
     @cell_count_cache
     def select_ires(self, dobj):

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