[yt-svn] commit/yt: 2 new changesets
commits-noreply at bitbucket.org
commits-noreply at bitbucket.org
Tue May 23 08:11:14 PDT 2017
2 new commits in yt:
https://bitbucket.org/yt_analysis/yt/commits/101e9cc3e4a3/
Changeset: 101e9cc3e4a3
User: xarthisius
Date: 2017-05-23 13:50:33+00:00
Summary: [art] use integer division
Affected #: 1 file
diff -r 6c6f7ba9d577da685efc00f23067d181ded7f01c -r 101e9cc3e4a3ee45b30679fcd48d3c9548291698 yt/frontends/art/data_structures.py
--- a/yt/frontends/art/data_structures.py
+++ b/yt/frontends/art/data_structures.py
@@ -705,7 +705,7 @@
tr[field] = np.zeros(cell_count, 'float64')
data = _read_root_level(content, self.domain.level_child_offsets,
self.domain.level_count)
- ns = (self.domain.ds.domain_dimensions.prod() / 8, 8)
+ ns = (self.domain.ds.domain_dimensions.prod() // 8, 8)
for field, fi in zip(fields, field_idxs):
source[field] = np.empty(ns, dtype="float64", order="C")
dt = data[fi,:].reshape(self.domain.ds.domain_dimensions,
@@ -781,7 +781,7 @@
self._count_art_octs(f, self.ds.child_grid_offset,
self.ds.min_level, self.ds.max_level)
# remember that the root grid is by itself; manually add it back in
- inoll[0] = self.ds.domain_dimensions.prod()/8
+ inoll[0] = self.ds.domain_dimensions.prod() // 8
_level_child_offsets[0] = self.ds.root_grid_offset
self.nhydrovars = nhydrovars
self.inoll = inoll # number of octs
https://bitbucket.org/yt_analysis/yt/commits/0887cc36d758/
Changeset: 0887cc36d758
User: ngoldbaum
Date: 2017-05-23 15:10:56+00:00
Summary: Merge pull request #1420 from Xarthisius/doc_numpy
[art] use integer division
Affected #: 1 file
diff -r 6c6f7ba9d577da685efc00f23067d181ded7f01c -r 0887cc36d758ca16aeeae094946aecfa3bd9a278 yt/frontends/art/data_structures.py
--- a/yt/frontends/art/data_structures.py
+++ b/yt/frontends/art/data_structures.py
@@ -705,7 +705,7 @@
tr[field] = np.zeros(cell_count, 'float64')
data = _read_root_level(content, self.domain.level_child_offsets,
self.domain.level_count)
- ns = (self.domain.ds.domain_dimensions.prod() / 8, 8)
+ ns = (self.domain.ds.domain_dimensions.prod() // 8, 8)
for field, fi in zip(fields, field_idxs):
source[field] = np.empty(ns, dtype="float64", order="C")
dt = data[fi,:].reshape(self.domain.ds.domain_dimensions,
@@ -781,7 +781,7 @@
self._count_art_octs(f, self.ds.child_grid_offset,
self.ds.min_level, self.ds.max_level)
# remember that the root grid is by itself; manually add it back in
- inoll[0] = self.ds.domain_dimensions.prod()/8
+ inoll[0] = self.ds.domain_dimensions.prod() // 8
_level_child_offsets[0] = self.ds.root_grid_offset
self.nhydrovars = nhydrovars
self.inoll = inoll # number of octs
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