Skip to content

Commit 6807587

Browse files
committed
fixed warning in resample_factor(): convert float to int
1 parent 3b0bccf commit 6807587

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

gridData/core.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ def resample_factor(self, factor):
256256
"""
257257
# new number of edges N' = (N-1)*f + 1
258258
newlengths = [(N - 1) * float(factor) + 1 for N in self._len_edges()]
259-
edges = [numpy.linspace(start, stop, num=N, endpoint=True)
259+
edges = [numpy.linspace(start, stop, num=int(N), endpoint=True)
260260
for (start, stop, N) in
261261
zip(self._min_edges(), self._max_edges(), newlengths)]
262262
return self.resample(edges)

0 commit comments

Comments
 (0)