[yt-svn] commit/yt: 2 new changesets
commits-noreply at bitbucket.org
commits-noreply at bitbucket.org
Sat Jul 9 14:16:19 PDT 2016
2 new commits in yt:
https://bitbucket.org/yt_analysis/yt/commits/1b5613489027/
Changeset: 1b5613489027
Branch: yt
User: ngoldbaum
Date: 2016-07-05 23:42:46+00:00
Summary: Ensure oct fcoords and fwidths always have units attached. Closes #1239
Affected #: 1 file
diff -r 428dd2f17465075a90ab4ebf40db69e4f619f7ab -r 1b5613489027974c47873b8fa301868ab77aceb9 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):
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