diff options
author | Charles Harris <charlesr.harris@gmail.com> | 2013-06-09 08:11:02 -0700 |
---|---|---|
committer | Charles Harris <charlesr.harris@gmail.com> | 2013-06-09 08:11:02 -0700 |
commit | 558cd20c29db0cd89c4d92fc354602650f861064 (patch) | |
tree | ad3531de30581e88b146aecbce8c057e4f792d30 /numpy/lib/index_tricks.py | |
parent | 704b456e49b13150aa693f4fd7d66dca0d541f0b (diff) | |
parent | 163f6df5a6668d06cb7abfe38dbd03d19b26d6f3 (diff) | |
download | numpy-558cd20c29db0cd89c4d92fc354602650f861064.tar.gz |
Merge pull request #3243 from seberg/deprecate-non-integer-arguments-new
Deprecate non integer arguments
Diffstat (limited to 'numpy/lib/index_tricks.py')
-rw-r--r-- | numpy/lib/index_tricks.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/lib/index_tricks.py b/numpy/lib/index_tricks.py index b3c9b72bc..ca3d60869 100644 --- a/numpy/lib/index_tricks.py +++ b/numpy/lib/index_tricks.py @@ -157,7 +157,7 @@ class nd_grid(object): size.append(int(abs(step))) typ = float else: - size.append(math.ceil((key[k].stop - start)/(step*1.0))) + size.append(int(math.ceil((key[k].stop - start)/(step*1.0)))) if isinstance(step, float) or \ isinstance(start, float) or \ isinstance(key[k].stop, float): |