test_core

Tests suite for MaskedArray & subclassing.

author:Pierre Gerard-Marchant
contact:pierregm_at_uga_dot_edu

Module Contents

__author__ = Pierre GF Gerard-Marchant
pi
class TestMaskedArray

Bases:TestCase

setUp(self)
test_basicattributes(self)
test_basic0d(self)
test_basic1d(self)
test_basic2d(self)
test_concatenate_basic(self)
test_concatenate_alongaxis(self)
test_concatenate_flexible(self)
test_creation_ndmin(self)
test_creation_ndmin_from_maskedarray(self)
test_creation_maskcreation(self)
test_creation_with_list_of_maskedarrays(self)
test_asarray(self)
test_fix_invalid(self)
test_maskedelement(self)
test_set_element_as_object(self)
test_indexing(self)
test_copy(self)
test_deepcopy(self)
test_str_repr(self)
test_pickling(self)
test_pickling_subbaseclass(self)
test_pickling_maskedconstant(self)
test_pickling_wstructured(self)
test_pickling_keepalignment(self)
test_single_element_subscript(self)
test_topython(self)
test_oddfeatures_1(self)
test_oddfeatures_2(self)
test_oddfeatures_3(self)
test_filled_w_object_dtype(self)
test_filled_w_flexible_dtype(self)
test_filled_w_mvoid(self)
test_filled_w_nested_dtype(self)
test_filled_w_f_order(self)
test_optinfo_propagation(self)
test_fancy_printoptions(self)
test_flatten_structured_array(self)
test_void0d(self)
test_mvoid_getitem(self)
test_mvoid_iter(self)
test_mvoid_print(self)
class TestMaskedArrayArithmetic

Bases:TestCase

setUp(self)
tearDown(self)
test_basic_arithmetic(self)
test_divide_on_different_shapes(self)
test_mixed_arithmetic(self)
test_limits_arithmetic(self)
test_masked_singleton_arithmetic(self)
test_masked_singleton_equality(self)
test_arithmetic_with_masked_singleton(self)
test_arithmetic_with_masked_singleton_on_1d_singleton(self)
test_scalar_arithmetic(self)
test_basic_ufuncs(self)
test_count_func(self)
test_minmax_func(self)
test_minimummaximum_func(self)
test_minmax_reduce(self)
test_minmax_funcs_with_output(self)
test_minmax_methods(self)
test_addsumprod(self)
test_binops_d2D(self)
test_domained_binops_d2D(self)
test_noshrinking(self)
test_mod(self)
test_TakeTransposeInnerOuter(self)
test_imag_real(self)
test_methods_with_output(self)
test_eq_on_structured(self)
test_ne_on_structured(self)
test_eq_w_None(self)
test_eq_w_scalar(self)
test_numpyarithmetics(self)
class TestMaskedArrayAttributes

Bases:TestCase

test_keepmask(self)
test_hardmask(self)
test_hardmask_again(self)
test_hardmask_oncemore_yay(self)
test_smallmask(self)
test_shrink_mask(self)
test_flat(self)
class TestFillingValues

Bases:TestCase

test_check_on_scalar(self)
test_check_on_fields(self)
test_fillvalue_conversion(self)
test_fillvalue(self)
test_fillvalue_exotic_dtype(self)
test_fillvalue_datetime_timedelta(self)
test_extremum_fill_value(self)
test_fillvalue_individual_fields(self)
test_fillvalue_implicit_structured_array(self)
test_fillvalue_as_arguments(self)
test_fillvalue_in_view(self)
class TestUfuncs

Bases:TestCase

setUp(self)
tearDown(self)
test_testUfuncRegression(self)
test_reduce(self)
test_minmax(self)
test_ndarray_mask(self)
test_treatment_of_NotImplemented(self)
class TestMaskedArrayInPlaceArithmetics

Bases:TestCase

setUp(self)
test_inplace_addition_scalar(self)
test_inplace_addition_array(self)
test_inplace_subtraction_scalar(self)
test_inplace_subtraction_array(self)
test_inplace_multiplication_scalar(self)
test_inplace_multiplication_array(self)
test_inplace_division_scalar_int(self)
test_inplace_division_scalar_float(self)
test_inplace_division_array_float(self)
test_inplace_division_misc(self)
test_datafriendly_add(self)
test_datafriendly_sub(self)
test_datafriendly_mul(self)
test_datafriendly_div(self)
test_datafriendly_pow(self)
test_datafriendly_add_arrays(self)
test_datafriendly_sub_arrays(self)
test_datafriendly_mul_arrays(self)
class TestMaskedArrayMethods

Bases:TestCase

setUp(self)
test_generic_methods(self)
test_allclose(self)
test_allany(self)
test_allany_onmatrices(self)
test_allany_oddities(self)
test_argmax_argmin(self)
test_clip(self)
test_compress(self)
test_compressed(self)
test_empty(self)
test_put(self)
test_put_hardmask(self)
test_putmask(self)
test_ravel(self)
test_reshape(self)
test_sort(self)
test_sort_2d(self)
test_sort_flexible(self)
test_argsort(self)
test_squeeze(self)
test_swapaxes(self)
test_take(self)
test_take_masked_indices(self)
test_tolist(self)
test_tolist_specialcase(self)
test_toflex(self)
test_fromflex(self)
test_arraymethod(self)
class TestMaskedArrayMathMethods

Bases:TestCase

setUp(self)
test_cumsumprod(self)
test_cumsumprod_with_output(self)
test_ptp(self)
test_sum_object(self)
test_prod_object(self)
test_meananom_object(self)
test_trace(self)
test_varstd(self)
test_varstd_specialcases(self)
test_varstd_ddof(self)
test_diag(self)
test_axis_methods_nomask(self)
class TestMaskedArrayMathMethodsComplex

Bases:TestCase

setUp(self)
test_varstd(self)
class TestMaskedArrayFunctions

Bases:TestCase

setUp(self)
test_masked_where_bool(self)
test_masked_equal_wlist(self)
test_masked_equal_fill_value(self)
test_masked_where_condition(self)
test_masked_where_oddities(self)
test_masked_where_shape_constraint(self)
test_masked_otherfunctions(self)
test_round(self)
test_round_with_output(self)
test_identity(self)
test_power(self)
test_power_w_broadcasting(self)
test_where(self)
test_where_with_masked_choice(self)
test_where_with_masked_condition(self)
test_where_type(self)
test_choose(self)
test_choose_with_out(self)
test_reshape(self)
test_make_mask_descr(self)
test_make_mask(self)
test_mask_or(self)
test_flatten_mask(self)
test_on_ndarray(self)
test_compress(self)
test_compressed(self)
class TestMaskedFields

Bases:TestCase

setUp(self)
test_set_records_masks(self)
test_set_record_element(self)
test_set_record_slice(self)
test_mask_element(self)

Check record access

test_getmaskarray(self)
test_view(self)
test_getitem(self)
test_setitem(self)
test_element_len(self)
class TestMaskedView

Bases:TestCase

setUp(self)
test_view_to_nothing(self)
test_view_to_type(self)
test_view_to_simple_dtype(self)
test_view_to_flexible_dtype(self)
test_view_to_subdtype(self)
test_view_to_dtype_and_type(self)
test_masked_array()
test_append_masked_array()
test_append_masked_array_along_axis()