Skip to content

Cast to integer to get rid of numpy warning #3241

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 11 commits into from
Aug 26, 2014
Prev Previous commit
Next Next commit
Remove redundant cast to int
  • Loading branch information
jenshnielsen committed Jul 23, 2014
commit a94e43faaa61901d201ee798c5f8827ce18eecd6
1 change: 0 additions & 1 deletion lib/matplotlib/cbook.py
Original file line number Diff line number Diff line change
Expand Up @@ -1747,7 +1747,6 @@ def simple_linear_interpolation(a, steps):
a0 = a[0:-1]
a1 = a[1:]
delta = ((a1 - a0) / steps)
steps = int(steps)
for i in range(1, steps):
result[i::steps] = delta * i + a0
result[steps::steps] = a1
Expand Down