Closed rusandris closed 6 months ago
In the non-mutating timeseries_to_grid methods use extrema instead of trying to find mins and maxes separately
timeseries_to_grid
extrema
if isempty(grid_edges) x_min = minimum(timeseries[:, 1]) y_min = minimum(timeseries[:, 2]) x_max = maximum(timeseries[:, 1]) y_max = maximum(timeseries[:, 2]) else x_min,y_min,x_max,y_max = grid_edges end
Also, views should be used instead of making a copies with slices along the axes.
In the non-mutating
timeseries_to_grid
methods useextrema
instead of trying to find mins and maxes separatelyAlso, views should be used instead of making a copies with slices along the axes.