[yt-svn] commit/yt: 2 new changesets
commits-noreply at bitbucket.org
commits-noreply at bitbucket.org
Fri Nov 18 08:12:23 PST 2016
2 new commits in yt:
https://bitbucket.org/yt_analysis/yt/commits/30d1e76c9edc/
Changeset: 30d1e76c9edc
Branch: yt
User: ngoldbaum
Date: 2016-11-09 16:18:04+00:00
Summary: [bugfix] use integer division in gadget IO routines
Affected #: 1 file
diff -r 1a290fab65e430186f2c6e80ae19ae6084402dc4 -r 30d1e76c9edcfa42d1a7c52797bafda13a0c0402 yt/frontends/gadget/io.py
--- a/yt/frontends/gadget/io.py
+++ b/yt/frontends/gadget/io.py
@@ -139,7 +139,7 @@
arr = np.fromfile(f, dtype=dt, count = count)
if name in self._vector_fields:
factor = self._vector_fields[name]
- arr = arr.reshape((count/factor, factor), order="C")
+ arr = arr.reshape((count//factor, factor), order="C")
return arr.astype("float64")
def _initialize_index(self, data_file, regions):
https://bitbucket.org/yt_analysis/yt/commits/d6aed3eef562/
Changeset: d6aed3eef562
Branch: yt
User: MatthewTurk
Date: 2016-11-18 16:11:55+00:00
Summary: Merged in ngoldbaum/yt (pull request #2436)
[bugfix] use integer division in gadget IO routines
Affected #: 1 file
diff -r cd8abd2f3e65292fbd05dc3b4aaf9ec4fcae7130 -r d6aed3eef562bdb54864d3786f42d84b25c5aa62 yt/frontends/gadget/io.py
--- a/yt/frontends/gadget/io.py
+++ b/yt/frontends/gadget/io.py
@@ -312,7 +312,7 @@
arr = np.fromfile(f, dtype=dt, count = count)
if name in self._vector_fields:
factor = self._vector_fields[name]
- arr = arr.reshape((count/factor, factor), order="C")
+ arr = arr.reshape((count//factor, factor), order="C")
return arr.astype("float64")
def _initialize_index(self, data_file, regions):
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