scipp.identical#

scipp.identical(x, y, *, equal_nan=False)#

Full comparison of x and y.

Parameters:
  • x (VariableLike) – Left input.

  • y (VariableLike) – Right input.

  • equal_nan (bool, default: False) – If true, non-finite values at the same index in (x, y) are treated as equal. Signbit must match for infs.

Returns:

bool – True if x and y have identical values, variances, dtypes, units, dims, shapes, coords, and masks. Else False.