checks pack¶
3 nodes, in noodlelab and above.
Checks¶
Expect In Range¶
checks.expect_in_range
Expect a number, an array or a column to lie within limits (either may be left empty). Missing values (NaN) fail unless allowed.
Inputs
Name |
Type |
Description |
|---|---|---|
|
|
|
|
|
Optional. |
|
|
Optional. |
|
|
The limits’ unit, for a quantity Default |
|
|
Default |
Outputs
Name |
Type |
Description |
|---|---|---|
|
|
|
|
|
Expect Table¶
checks.expect_table
Expect a table to have its columns, no gaps where it matters, a unique key and a plausible number of rows.
Inputs
Name |
Type |
Description |
|---|---|---|
|
|
|
|
|
Columns it must have, comma-separated Default |
|
|
Columns without missing values (* for all) Default |
|
|
A column whose values must not repeat Default |
|
|
Default |
|
|
0: no limit Default |
Outputs
Name |
Type |
Description |
|---|---|---|
|
|
|
|
|
Expect Value¶
checks.expect_value
Expect a result to equal a value: typed (“9.81”, “9.81 m/s^2”, “9.81 ± 0.02”) or linked. Passes within the tolerance, or, when either side has an uncertainty, when |Δ| ≤ k·u(Δ), the standard uncertainty of the difference (which is √(u₁² + u₂²) when they share no inputs). Complex values are compared by the modulus of the difference. Arrays are compared element-wise.
Inputs
Name |
Type |
Description |
|---|---|---|
|
|
|
|
|
Default |
|
|
Absolute tolerance, in the expected value’s unit Default |
|
|
Relative tolerance, in % of the expected value Default |
|
|
With uncertainties: agree within k combined standard uncertainties Default |
Outputs
Name |
Type |
Description |
|---|---|---|
|
|
|
|
|