Author | |
Pierre Gerard-Marchant | |
Unknown Field: contact | |
pierregm_at_uga_dot_edu | |
Unknown Field: version | |
$Id: testutils.py 3529 2007-11-13 08:01:14Z jarrod.millman $ |
Function | _assert_equal_on_sequences |
Asserts the equality of two non-array sequences. |
Function | almost |
Returns True if a and b are equal up to decimal places. |
Function | approx |
Returns true if all components of a and b are equal to given tolerances. |
Function | assert_almost_equal |
Asserts that two items are almost equal. |
Function | assert_array_almost_equal |
Checks the equality of two masked arrays, up to given number odecimals. |
Function | assert_array_approx_equal |
Checks the equality of two masked arrays, up to given number odecimals. |
Function | assert_array_compare |
Asserts that comparison between two masked arrays is satisfied. |
Function | assert_array_equal |
Checks the elementwise equality of two masked arrays. |
Function | assert_array_less |
Checks that x is smaller than y elementwise. |
Function | assert_equal |
Asserts that two items are equal. |
Function | assert_equal_records |
Asserts that two records are equal. |
Function | assert_mask_equal |
Asserts the equality of two masks. |
Function | fail_if_array_equal |
Raises an assertion error if two masked arrays are not equal elementwise. |
Function | fail_if_equal |
Raises an assertion error if two items are equal. |
Variable | __all__masked |
Undocumented |
Variable | __some__from_testing |
Undocumented |
Returns True if a and b are equal up to decimal places.
If fill_value is True, masked values considered equal. Otherwise, masked values are considered unequal.
Returns true if all components of a and b are equal to given tolerances.
If fill_value is True, masked values considered equal. Otherwise, masked values are considered unequal. The relative error rtol should be positive and << 1.0 The absolute error atol comes into play for those elements of b that are very small or zero; it says how small a must be also.
Asserts that two items are almost equal.
The test is equivalent to abs(desired-actual) < 0.5 * 10**(-decimal).
Checks the equality of two masked arrays, up to given number odecimals.
The equality is checked elementwise.
Checks the equality of two masked arrays, up to given number odecimals.
The equality is checked elementwise.
Asserts that comparison between two masked arrays is satisfied.
The comparison is elementwise.