numpy.ma.testutils (version 1.0, $Date: 2007-11-13 10:01:14 +0200 (Tue, 13 Nov 2007) $)
index
/usr/lib/python2.6/dist-packages/numpy/ma/testutils.py

Miscellaneous functions for testing masked arrays and subclasses
 
:author: Pierre Gerard-Marchant
:contact: pierregm_at_uga_dot_edu
:version: $Id: testutils.py 3529 2007-11-13 08:01:14Z jarrod.millman $

 
Modules
       
numpy.testing.decorators
numpy.testing.decorators
numpy.testing.nosetester
numpy
numpy.testing.numpytest
operator
numpy.core.umath
numpy.testing.utils

 
Functions
       
_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.

 
Data
        __author__ = 'Pierre GF Gerard-Marchant ($Author: jarrod.millman $)'
__date__ = '$Date: 2007-11-13 10:01:14 +0200 (Tue, 13 Nov 2007) $'
__file__ = '/usr/lib/python2.6/dist-packages/numpy/ma/testutils.pyc'
__name__ = 'numpy.ma.testutils'
__package__ = 'numpy.ma'
__revision__ = '$Revision: 3529 $'
__version__ = '1.0'
equal = <numpy.ma.core._MaskedBinaryOperation instance at 0x246eb00>
less = <numpy.ma.core._MaskedBinaryOperation instance at 0x246ec20>
masked = masked_array(data = --, mask = True, fill_value = 1e+20)
nomask = False
verbose = 0

 
Author
        Pierre GF Gerard-Marchant ($Author: jarrod.millman $)