We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3b0bccf commit 6807587Copy full SHA for 6807587
1 file changed
gridData/core.py
@@ -256,7 +256,7 @@ def resample_factor(self, factor):
256
"""
257
# new number of edges N' = (N-1)*f + 1
258
newlengths = [(N - 1) * float(factor) + 1 for N in self._len_edges()]
259
- edges = [numpy.linspace(start, stop, num=N, endpoint=True)
+ edges = [numpy.linspace(start, stop, num=int(N), endpoint=True)
260
for (start, stop, N) in
261
zip(self._min_edges(), self._max_edges(), newlengths)]
262
return self.resample(edges)
0 commit comments