Skip to content

Commit 54d7c8a

Browse files
committed
Fixed indgen arguments for interpolation
1 parent c72e34c commit 54d7c8a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/sequel_vectorized.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ def _process data, axis
6161

6262
interp = GSL::Interp.alloc("linear", raw_axis.size) if interpolate
6363

64-
data[axis_col] = NArray.float(new_size).indgen!(range.first,step)
64+
data[axis_col] = NArray.float(new_size).indgen!(range.first.to_f,step)
6565

6666
data[:__raw_mask] = NArray.byte(new_size)
6767
data[:__raw_mask][(raw_axis - range.first)/step.to_f] = 1

0 commit comments

Comments
 (0)