seq

simcado.utils.seq(start, stop, step=1)[source]

Replacement for numpy.arange modelled after R’s seq function

Returns an evenly spaced sequence from start to stop. stop is included if the difference between start and stop is an integer multiple of step.

From the documentation of numpy.range: “When using a non-integer step, such as 0.1, the results will often not be consistent.” This replacement aims to avoid these inconsistencies.

Parameters
start, stop: [int, float]

the starting and (maximal) end values of the sequence.

step[int, float]

increment of the sequence, defaults to 1