compare_artifacts
Compare two artifacts numerically within absolute and relative tolerances, checking kind, axes, stamps, coordinates, and data to verify equivalent results across different hardware.
Instructions
Check whether two artifacts agree numerically, e.g. the same step run on a laptop and on a cluster. Ids are hashes of exact bytes, so different hardware can give different ids for results that agree to ~1e-15; this compares kind, axes, stamps, coordinates and data within |a - b| <= atol + rtol * |b|.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| a | Yes | ||
| b | Yes | ||
| atol | No | ||
| rtol | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||