μHAL (v2.8.17)
Part of the IPbus software repository
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Functions | Variables
test_numpy_array Namespace Reference

Functions

def test_dtypes ()
 
def arr ()
 
def test_array_attributes ()
 
def test_index_offset (arr, args, ret)
 
def test_dim_check_fail (arr)
 
def test_data (arr, args, ret)
 
def test_at_fail (arr, dim)
 
def test_at (arr)
 
def test_mutate_readonly (arr)
 
def test_mutate_data (arr)
 
def test_bounds_check (arr)
 
def test_make_c_f_array ()
 
def test_make_empty_shaped_array ()
 
def test_wrap ()
 
def test_numpy_view (capture)
 
def test_cast_numpy_int64_to_uint64 ()
 
def test_isinstance ()
 
def test_constructors ()
 
def test_overload_resolution (msg)
 
def test_greedy_string_overload ()
 
def test_array_unchecked_fixed_dims (msg)
 
def test_array_unchecked_dyn_dims ()
 
def test_array_failure ()
 
def test_initializer_list ()
 
def test_array_resize ()
 
def test_array_create_and_resize ()
 
def test_array_view ()
 
def test_array_view_invalid ()
 
def test_reshape_initializer_list ()
 
def test_reshape_tuple ()
 
def test_index_using_ellipsis ()
 
def test_format_descriptors_for_floating_point_types (test_func)
 
def test_argument_conversions (forcecast, contiguity, noconvert)
 
def test_dtype_refcount_leak ()
 
def test_round_trip_float ()
 

Variables

 np = pytest.importorskip("numpy")
 

Function Documentation

◆ arr()

def test_numpy_array.arr ( )

Definition at line 29 of file test_numpy_array.py.

◆ test_argument_conversions()

def test_numpy_array.test_argument_conversions (   forcecast,
  contiguity,
  noconvert 
)

Definition at line 543 of file test_numpy_array.py.

References getattr().

◆ test_array_attributes()

def test_numpy_array.test_array_attributes ( )

Definition at line 33 of file test_numpy_array.py.

◆ test_array_create_and_resize()

def test_numpy_array.test_array_create_and_resize ( )

Definition at line 473 of file test_numpy_array.py.

◆ test_array_failure()

def test_numpy_array.test_array_failure ( )

Definition at line 426 of file test_numpy_array.py.

◆ test_array_resize()

def test_numpy_array.test_array_resize ( )

Definition at line 447 of file test_numpy_array.py.

◆ test_array_unchecked_dyn_dims()

def test_numpy_array.test_array_unchecked_dyn_dims ( )

Definition at line 414 of file test_numpy_array.py.

◆ test_array_unchecked_fixed_dims()

def test_numpy_array.test_array_unchecked_fixed_dims (   msg)

Definition at line 388 of file test_numpy_array.py.

◆ test_array_view()

def test_numpy_array.test_array_view ( )

Definition at line 479 of file test_numpy_array.py.

◆ test_array_view_invalid()

def test_numpy_array.test_array_view_invalid ( )

Definition at line 488 of file test_numpy_array.py.

◆ test_at()

def test_numpy_array.test_at (   arr)

Definition at line 125 of file test_numpy_array.py.

◆ test_at_fail()

def test_numpy_array.test_at_fail (   arr,
  dim 
)

Definition at line 116 of file test_numpy_array.py.

◆ test_bounds_check()

def test_numpy_array.test_bounds_check (   arr)

Definition at line 159 of file test_numpy_array.py.

◆ test_cast_numpy_int64_to_uint64()

def test_numpy_array.test_cast_numpy_int64_to_uint64 ( )

Definition at line 284 of file test_numpy_array.py.

◆ test_constructors()

def test_numpy_array.test_constructors ( )

Definition at line 294 of file test_numpy_array.py.

◆ test_data()

def test_numpy_array.test_data (   arr,
  args,
  ret 
)

Definition at line 107 of file test_numpy_array.py.

◆ test_dim_check_fail()

def test_numpy_array.test_dim_check_fail (   arr)

Definition at line 82 of file test_numpy_array.py.

◆ test_dtype_refcount_leak()

def test_numpy_array.test_dtype_refcount_leak ( )

Definition at line 585 of file test_numpy_array.py.

◆ test_dtypes()

def test_numpy_array.test_dtypes ( )

Definition at line 10 of file test_numpy_array.py.

◆ test_format_descriptors_for_floating_point_types()

def test_numpy_array.test_format_descriptors_for_floating_point_types (   test_func)

Definition at line 533 of file test_numpy_array.py.

◆ test_greedy_string_overload()

def test_numpy_array.test_greedy_string_overload ( )
Tests fix for #685 - ndarray shouldn't go to std::string overload

Definition at line 380 of file test_numpy_array.py.

◆ test_index_offset()

def test_numpy_array.test_index_offset (   arr,
  args,
  ret 
)

Definition at line 75 of file test_numpy_array.py.

◆ test_index_using_ellipsis()

def test_numpy_array.test_index_using_ellipsis ( )

Definition at line 519 of file test_numpy_array.py.

◆ test_initializer_list()

def test_numpy_array.test_initializer_list ( )

Definition at line 440 of file test_numpy_array.py.

◆ test_isinstance()

def test_numpy_array.test_isinstance ( )

Definition at line 289 of file test_numpy_array.py.

◆ test_make_c_f_array()

def test_numpy_array.test_make_c_f_array ( )

Definition at line 178 of file test_numpy_array.py.

◆ test_make_empty_shaped_array()

def test_numpy_array.test_make_empty_shaped_array ( )

Definition at line 185 of file test_numpy_array.py.

◆ test_mutate_data()

def test_numpy_array.test_mutate_data (   arr)

Definition at line 145 of file test_numpy_array.py.

◆ test_mutate_readonly()

def test_numpy_array.test_mutate_readonly (   arr)

Definition at line 133 of file test_numpy_array.py.

◆ test_numpy_view()

def test_numpy_array.test_numpy_view (   capture)

Definition at line 251 of file test_numpy_array.py.

◆ test_overload_resolution()

def test_numpy_array.test_overload_resolution (   msg)

Definition at line 310 of file test_numpy_array.py.

References repr().

◆ test_reshape_initializer_list()

def test_numpy_array.test_reshape_initializer_list ( )

Definition at line 494 of file test_numpy_array.py.

◆ test_reshape_tuple()

def test_numpy_array.test_reshape_tuple ( )

Definition at line 504 of file test_numpy_array.py.

◆ test_round_trip_float()

def test_numpy_array.test_round_trip_float ( )

Definition at line 590 of file test_numpy_array.py.

◆ test_wrap()

def test_numpy_array.test_wrap ( )

Definition at line 194 of file test_numpy_array.py.

Variable Documentation

◆ np

test_numpy_array.np = pytest.importorskip("numpy")

Definition at line 7 of file test_numpy_array.py.