bottleneck.tests package¶
Submodules¶
bottleneck.tests.input_modification_test module¶
Test functions.
-
bottleneck.tests.input_modification_test.
arrays
(dtypes)¶ Iterator that yield arrays to use for unit testing.
-
bottleneck.tests.input_modification_test.
test_modification
(func)¶ Test that bn.xxx gives the same output as np.xxx.
bottleneck.tests.list_input_test module¶
Check that functions can handle list input
-
bottleneck.tests.list_input_test.
lists
(dtypes=(<class 'numpy.float64'>, <class 'numpy.float32'>, <class 'numpy.int64'>, <class 'numpy.int32'>))¶ Iterator that yields lists to use for unit testing.
-
bottleneck.tests.list_input_test.
test_list_input
(func)¶ Test that bn.xxx gives the same output as bn.slow.xxx for list input.
bottleneck.tests.move_test module¶
Test moving window functions.
-
bottleneck.tests.move_test.
test_arg_parse_raises
(func)¶ test argument parsing raises in move
-
bottleneck.tests.move_test.
test_arg_parsing
(func, decimal=5)¶ test argument parsing.
-
bottleneck.tests.move_test.
test_move
(func)¶ Test that bn.xxx gives the same output as a reference function.
-
bottleneck.tests.move_test.
test_move_median_with_nans
()¶ test move_median.c with nans
-
bottleneck.tests.move_test.
test_move_median_without_nans
()¶ test move_median.c without nans
-
bottleneck.tests.move_test.
test_move_std_sqrt
()¶ Test move_std for neg sqrt.
bottleneck.tests.nonreduce_axis_test module¶
-
bottleneck.tests.nonreduce_axis_test.
complete_the_argpartition
(index, a, n, axis)¶
-
bottleneck.tests.nonreduce_axis_test.
complete_the_partition
(a, n, axis)¶
-
bottleneck.tests.nonreduce_axis_test.
test_arg_parsing
(func)¶ test argument parsing in nonreduce_axis
-
bottleneck.tests.nonreduce_axis_test.
test_nonreduce_axis
(func)¶ Test nonreduce axis functions
-
bottleneck.tests.nonreduce_axis_test.
test_out_of_bounds_raises
(func, dtype)¶
-
bottleneck.tests.nonreduce_axis_test.
test_partition_and_argpartition
(func)¶ test partition or argpartition
-
bottleneck.tests.nonreduce_axis_test.
test_push
()¶ Test push
-
bottleneck.tests.nonreduce_axis_test.
test_transpose
()¶ partition transpose test
-
bottleneck.tests.nonreduce_axis_test.
unit_maker_parse
(func, decimal=5)¶ test argument parsing.
-
bottleneck.tests.nonreduce_axis_test.
unit_maker_raises
(func)¶ test argument parsing raises in nonreduce_axis
bottleneck.tests.nonreduce_test module¶
Test replace().
-
bottleneck.tests.nonreduce_test.
test_non_array
()¶ Test that non-array input raises
-
bottleneck.tests.nonreduce_test.
test_nonreduce
(func)¶ Test that bn.xxx gives the same output as np.xxx.
-
bottleneck.tests.nonreduce_test.
test_replace_bad_args
()¶
-
bottleneck.tests.nonreduce_test.
test_replace_nan_int
(dtype)¶ Test replace, int array, old=nan, new=0
-
bottleneck.tests.nonreduce_test.
test_replace_newaxis
(dtype)¶
-
bottleneck.tests.nonreduce_test.
test_replace_unsafe_cast
()¶ Test replace for unsafe casts
bottleneck.tests.reduce_test module¶
Test reduce functions.
-
bottleneck.tests.reduce_test.
test_arg_parse_raises
(func)¶ test argument parsing raises in reduce
-
bottleneck.tests.reduce_test.
test_arg_parsing
(func)¶ test argument parsing
-
bottleneck.tests.reduce_test.
test_ddof_nans
(func, dtype)¶
-
bottleneck.tests.reduce_test.
test_nanmax_size_zero
(dtypes=(<class 'numpy.float64'>, <class 'numpy.float32'>, <class 'numpy.int64'>, <class 'numpy.int32'>))¶ Test nanmax for size zero input arrays.
-
bottleneck.tests.reduce_test.
test_nanmin_size_zero
(dtypes=(<class 'numpy.float64'>, <class 'numpy.float32'>, <class 'numpy.int64'>, <class 'numpy.int32'>))¶ Test nanmin for size zero input arrays.
-
bottleneck.tests.reduce_test.
test_nanstd_issue60
()¶ nanstd regression test (issue #60)
-
bottleneck.tests.reduce_test.
test_nanvar_issue60
()¶ nanvar regression test (issue #60)
-
bottleneck.tests.reduce_test.
test_reduce
(func)¶ test reduce functions
-
bottleneck.tests.reduce_test.
unit_maker
(func, decimal=5, skip_dtype=('nansum', 'ss'))¶ Test that bn.xxx gives the same output as bn.slow.xxx.
-
bottleneck.tests.reduce_test.
unit_maker_argparse
(func, decimal=5)¶ test argument parsing.
-
bottleneck.tests.reduce_test.
unit_maker_argparse_raises
(func)¶ test argument parsing raises in reduce
bottleneck.tests.scalar_input_test module¶
Check that functions can handle scalar input
-
bottleneck.tests.scalar_input_test.
test_scalar_input
(func, args=())¶ Test that bn.xxx gives the same output as bn.slow.xxx for scalar input.
bottleneck.tests.util module¶
-
bottleneck.tests.util.
array_generator
(func_name, dtypes)¶ Iterator that yields arrays to use for unit testing.
-
bottleneck.tests.util.
array_iter
(arrays_func, *args)¶
-
bottleneck.tests.util.
array_order
(a)¶
-
bottleneck.tests.util.
arrays
(func_name, dtypes=(<class 'numpy.float64'>, <class 'numpy.float32'>, <class 'numpy.int64'>, <class 'numpy.int32'>))¶
-
bottleneck.tests.util.
func_dict
()¶
-
bottleneck.tests.util.
get_functions
(module_name, as_string=False)¶ Returns a list of functions, optionally as string function names