Skip to content

Commit ee9e1c5

Browse files
committed
Line 45, make sure variable m is an integer
1 parent f5806d5 commit ee9e1c5

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

interpolation/splines/misc.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ def cartesian(arrays, out=None):
4242
if out is None:
4343
out = np.zeros([n, len(arrays)], dtype=dtype)
4444

45-
m = n / arrays[0].size
45+
m = int( n / arrays[0].size)
4646
out[:,0] = np.repeat(arrays[0], m)
4747
if arrays[1:]:
4848
cartesian(arrays[1:], out=out[0:m,1:])
@@ -53,12 +53,12 @@ def cartesian(arrays, out=None):
5353
def mlinspace(a,b,orders,out=None):
5454

5555
import numpy
56-
56+
5757
sl = [numpy.linspace(a[i],b[i],orders[i]) for i in range(len(a))]
58-
58+
5959
if out is None:
6060
out = cartesian(sl)
6161
else:
6262
cartesian(sl, out)
6363

64-
return out
64+
return out

0 commit comments

Comments
 (0)