summaryrefslogtreecommitdiff
path: root/numpy
diff options
context:
space:
mode:
authorSimon Conseil <contact@saimon.org>2015-12-02 00:01:40 +0100
committerSimon Conseil <contact@saimon.org>2015-12-02 00:01:40 +0100
commitd0e9d98b2aa126bb2654c4c5966a4034c4bb99fc (patch)
tree4a794a953407f71e040b79c037f8f8e190847195 /numpy
parentb5c456e84dc87521a476ff51e3a2ab55f8c5c29f (diff)
downloadnumpy-d0e9d98b2aa126bb2654c4c5966a4034c4bb99fc.tar.gz
Use integer division to avoid casting to int.
Diffstat (limited to 'numpy')
-rw-r--r--numpy/ma/core.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/ma/core.py b/numpy/ma/core.py
index 5ef76a66e..d412968c3 100644
--- a/numpy/ma/core.py
+++ b/numpy/ma/core.py
@@ -3718,7 +3718,7 @@ class MaskedArray(ndarray):
# object dtype, extract the corners before the conversion.
for axis in range(self.ndim):
if data.shape[axis] > self._print_width:
- ind = np.int(self._print_width / 2)
+ ind = self._print_width // 2
arr = np.split(data, (ind, -ind), axis=axis)
data = np.concatenate((arr[0], arr[2]), axis=axis)
arr = np.split(mask, (ind, -ind), axis=axis)