| |
- _assert_equal_on_sequences(actual, desired, err_msg='')
- Asserts the equality of two non-array sequences.
- almost(a, b, decimal=6, fill_value=True)
- 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.
- approx(a, b, fill_value=True, rtol=1.0000000000000001e-05, atol=1e-08)
- Returns true if all components of a and b are equal subject 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.
- assert_almost_equal(actual, desired, decimal=7, err_msg='', verbose=True)
- Asserts that two items are almost equal.
The test is equivalent to abs(desired-actual) < 0.5 * 10**(-decimal)
- assert_array_almost_equal(x, y, decimal=6, err_msg='', verbose=True)
- Checks the elementwise equality of two masked arrays, up to a given
number of decimals.
- assert_array_approx_equal(x, y, decimal=6, err_msg='', verbose=True)
- Checks the elementwise equality of two masked arrays, up to a given
number of decimals.
- assert_array_compare(comparison, x, y, err_msg='', verbose=True, header='', fill_value=True)
- Asserts that a comparison relation between two masked arrays is satisfied
elementwise.
- assert_array_equal(x, y, err_msg='', verbose=True)
- Checks the elementwise equality of two masked arrays.
- assert_array_less(x, y, err_msg='', verbose=True)
- Checks that x is smaller than y elementwise.
- assert_close = assert_almost_equal(actual, desired, decimal=7, err_msg='', verbose=True)
- Asserts that two items are almost equal.
The test is equivalent to abs(desired-actual) < 0.5 * 10**(-decimal)
- assert_equal(actual, desired, err_msg='')
- Asserts that two items are equal.
- assert_equal_records(a, b)
- Asserts that two records are equal. Pretty crude for now.
- assert_mask_equal(m1, m2)
- Asserts the equality of two masks.
- assert_not_equal = fail_if_equal(actual, desired, err_msg='')
- Raises an assertion error if two items are equal.
- fail_if_array_equal(x, y, err_msg='', verbose=True)
- Raises an assertion error if two masked arrays are not equal (elementwise).
- fail_if_equal(actual, desired, err_msg='')
- Raises an assertion error if two items are equal.
|