[yt-svn] commit/yt: xarthisius: Merged in ngoldbaum/yt (pull request #2412)
commits-noreply at bitbucket.org
commits-noreply at bitbucket.org
Mon Oct 24 12:52:19 PDT 2016
1 new commit in yt:
https://bitbucket.org/yt_analysis/yt/commits/dbab762ab74b/
Changeset: dbab762ab74b
Branch: yt
User: xarthisius
Date: 2016-10-24 19:51:51+00:00
Summary: Merged in ngoldbaum/yt (pull request #2412)
Explicitly use integer division to avoid a deprecation warning under python3
Affected #: 3 files
diff -r 34a95afc68047ab60ddf5a20816dfb80291cd99b -r dbab762ab74b1034cd4dd071192fde5c216b7c21 tests/tests.yaml
--- a/tests/tests.yaml
+++ b/tests/tests.yaml
@@ -5,16 +5,16 @@
local_athena_001:
- yt/frontends/athena
- local_chombo_000:
+ local_chombo_001:
- yt/frontends/chombo/tests/test_outputs.py
- local_enzo_001:
+ local_enzo_002:
- yt/frontends/enzo
local_fits_000:
- yt/frontends/fits/tests/test_outputs.py
- local_flash_002:
+ local_flash_003:
- yt/frontends/flash/tests/test_outputs.py
local_gadget_000:
@@ -39,7 +39,7 @@
local_owls_000:
- yt/frontends/owls/tests/test_outputs.py
- local_pw_008:
+ local_pw_009:
- yt/visualization/tests/test_plotwindow.py:test_attributes
- yt/visualization/tests/test_plotwindow.py:test_attributes_wt
- yt/visualization/tests/test_profile_plots.py:test_phase_plot_attributes
diff -r 34a95afc68047ab60ddf5a20816dfb80291cd99b -r dbab762ab74b1034cd4dd071192fde5c216b7c21 yt/data_objects/grid_patch.py
--- a/yt/data_objects/grid_patch.py
+++ b/yt/data_objects/grid_patch.py
@@ -184,8 +184,8 @@
if dlevel != 1:
rf = rf**dlevel
gi, cgi = self.get_global_startindex(), child.get_global_startindex()
- startIndex = np.maximum(0, cgi / rf - gi)
- endIndex = np.minimum((cgi + child.ActiveDimensions) / rf - gi,
+ startIndex = np.maximum(0, cgi // rf - gi)
+ endIndex = np.minimum((cgi + child.ActiveDimensions) // rf - gi,
self.ActiveDimensions)
endIndex += (startIndex == endIndex)
mask[startIndex[0]:endIndex[0],
diff -r 34a95afc68047ab60ddf5a20816dfb80291cd99b -r dbab762ab74b1034cd4dd071192fde5c216b7c21 yt/frontends/boxlib/data_structures.py
--- a/yt/frontends/boxlib/data_structures.py
+++ b/yt/frontends/boxlib/data_structures.py
@@ -126,8 +126,8 @@
if dlevel != 1:
raise NotImplementedError
gi, cgi = self.get_global_startindex(), child.get_global_startindex()
- startIndex = np.maximum(0, cgi / rf - gi)
- endIndex = np.minimum((cgi + child.ActiveDimensions) / rf - gi,
+ startIndex = np.maximum(0, cgi // rf - gi)
+ endIndex = np.minimum((cgi + child.ActiveDimensions) // rf - gi,
self.ActiveDimensions)
endIndex += (startIndex == endIndex)
mask[startIndex[0]:endIndex[0],
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