or run

npx @tessl/cli init
Log in

Version

Tile

Overview

Evals

Files

Files

docs

array-creation.mdbinning-histogramming.mdcoordinate-systems.mdcore-data-structures.mdindex.mdinput-output.mdmathematical-operations.mdreduction-operations.mdscipy-integration.mdshape-operations.mdspatial-operations.mdtesting-utilities.mdunits-system.mdvisualization.md

testing-utilities.mddocs/

0

# Testing Utilities

1

2

Testing utilities for scientific data validation and comparison.

3

4

## Capabilities

5

6

### Assertion Functions

7

8

Functions for testing and validating scipp data structures in unit tests.

9

10

```python { .api }

11

def assert_identical(a, b):

12

"""

13

Assert that two variables are identical

14

15

Args:

16

a (Variable or DataArray): First variable

17

b (Variable or DataArray): Second variable

18

19

Raises:

20

AssertionError: If variables are not identical

21

"""

22

23

def assert_allclose(a, b, **kwargs):

24

"""

25

Assert that two variables are close within tolerance

26

27

Args:

28

a (Variable or DataArray): First variable

29

b (Variable or DataArray): Second variable

30

**kwargs: Tolerance parameters (rtol, atol)

31

32

Raises:

33

AssertionError: If variables are not close

34

"""

35

```