scipp.arange(dim, start, stop=None, step=1, *, unit=<scipp._scipp.core.DefaultUnit object>, dtype=None)#

Constructs a Variable with evenly spaced values within a given interval. Values are generated within the half-open interval [start, stop) (in other words, the interval including start but excluding stop).

  • dim (str) – Dimension label.

  • start (Union[int, float, datetime64]) – Optional, the starting value of the sequence. Default=0.

  • stop (Union[int, float, datetime64, None], default: None) – End of interval. The interval does not include this value, except in some (rare) cases where step is not an integer and floating- point round-off can come into play.

  • step (Union[int, float], default: 1) – Optional, spacing between values. Default=1.

  • unit (Union[Unit, str, None], default: <scipp._scipp.core.DefaultUnit object at 0x7f749c6bf9b0>) – Optional, data unit. Default=dimensionless

  • dtype (Optional[DType], default: None) – Optional, type of underlying data. Default=None, in which case type is inferred from value input.


scipp.linspace() scipp.geomspace() scipp.logspace()

Return type