[yt-svn] commit/yt: 3 new changesets
commits-noreply at bitbucket.org
commits-noreply at bitbucket.org
Mon Nov 9 11:24:21 PST 2015
3 new commits in yt:
https://bitbucket.org/yt_analysis/yt/commits/47019c9a76cc/
Changeset: 47019c9a76cc
Branch: yt
User: brittonsmith
Date: 2015-11-04 16:35:01+00:00
Summary: Make sure to check for empty array properly. gt.size was returning
"(0, )" when empty and not 0.
Affected #: 1 file
diff -r f264885c3fb49044ba653bf1b29e2eb46e99db24 -r 47019c9a76cc7f904e900989c1ddd8f82e2f7eec yt/geometry/geometry_handler.py
--- a/yt/geometry/geometry_handler.py
+++ b/yt/geometry/geometry_handler.py
@@ -389,7 +389,7 @@
ind = 0
for obj in self._fast_index or self.objs:
gdt, gt = obj.select_tcoords(self.dobj)
- if gt.shape == 0: continue
+ if not gt.any(): continue
ct[ind:ind+gt.size] = gt
cdt[ind:ind+gdt.size] = gdt
ind += gt.size
https://bitbucket.org/yt_analysis/yt/commits/6ddc28b38230/
Changeset: 6ddc28b38230
Branch: yt
User: brittonsmith
Date: 2015-11-04 21:12:53+00:00
Summary: Do this more safely since a non-empty array of only zeros will return False with .any().
Affected #: 1 file
diff -r 47019c9a76cc7f904e900989c1ddd8f82e2f7eec -r 6ddc28b382304d6b729c84fac749ed625d6db051 yt/geometry/geometry_handler.py
--- a/yt/geometry/geometry_handler.py
+++ b/yt/geometry/geometry_handler.py
@@ -389,7 +389,7 @@
ind = 0
for obj in self._fast_index or self.objs:
gdt, gt = obj.select_tcoords(self.dobj)
- if not gt.any(): continue
+ if gt.size == 0: continue
ct[ind:ind+gt.size] = gt
cdt[ind:ind+gdt.size] = gdt
ind += gt.size
https://bitbucket.org/yt_analysis/yt/commits/11079ba03a6d/
Changeset: 11079ba03a6d
Branch: yt
User: ngoldbaum
Date: 2015-11-09 19:23:56+00:00
Summary: Merged in brittonsmith/yt (pull request #1846)
[bugfix] Fixing bug in ray "dts" and "t" fields (closes Issue #1141)
Affected #: 1 file
diff -r 2c9a4580995c344711843eef2ec1f06749c2f423 -r 11079ba03a6dd7c5e0214efe0b06e14667d9366a yt/geometry/geometry_handler.py
--- a/yt/geometry/geometry_handler.py
+++ b/yt/geometry/geometry_handler.py
@@ -389,7 +389,7 @@
ind = 0
for obj in self._fast_index or self.objs:
gdt, gt = obj.select_tcoords(self.dobj)
- if gt.shape == 0: continue
+ if gt.size == 0: continue
ct[ind:ind+gt.size] = gt
cdt[ind:ind+gdt.size] = gdt
ind += gt.size
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