scipp.islinspace#

scipp.islinspace(x, dim=None)#

Check if the values of a variable are evenly spaced.

Parameters
  • x (Variable) – Variable to check.

  • dim (Optional[str], default: None) – Optional variable for the dim to check from the Variable.

Returns

Variable – Variable of value True if the variable contains regularly spaced values, variable of value False otherwise.