test_numerictypes

Module Contents

Pdescr = [['x', 'i4', [2]], ['y', 'f8', [2, 2]], ['z', 'u1']]
PbufferT = [[[3, 2], [[6.0, 4.0], [6.0, 4.0]], 8], [[4, 3], [[7.0, 5.0], [7.0, 5.0]], 9]]
Ndescr = [['x', 'i4', [2]], ['Info', [['value', 'c16'], ['y2', 'f8'], ['Info2', [['name', 'S2'], ['value', 'c16', [2]], ['y3', 'f8', [2]], ['z3', 'u4', [2]]]], ['name', 'S2'], ['z2', 'b1']]], ['color', 'S2'], ['info', [['Name', 'U8'], ['Value', 'c16']]], ['y', 'f8', [2, 2]], ['z', 'u1']]
NbufferT = [None, None]
byteorder
normalize_descr(descr)

Normalize a description adding the platform byteorder.

class create_zeros

Bases:object

Check the creation of heterogeneous arrays zero-valued

test_zeros0D(self)

Check creation of 0-dimensional objects

test_zerosSD(self)

Check creation of single-dimensional objects

test_zerosMD(self)

Check creation of multi-dimensional objects

class test_create_zeros_plain

Bases:test_numerictypes.create_zeros, TestCase

Check the creation of heterogeneous arrays zero-valued (plain)

_descr
class test_create_zeros_nested

Bases:test_numerictypes.create_zeros, TestCase

Check the creation of heterogeneous arrays zero-valued (nested)

_descr
class create_values

Bases:object

Check the creation of heterogeneous arrays with values

test_tuple(self)

Check creation from tuples

test_list_of_tuple(self)

Check creation from list of tuples

test_list_of_list_of_tuple(self)

Check creation from list of list of tuples

class test_create_values_plain_single

Bases:test_numerictypes.create_values, TestCase

Check the creation of heterogeneous arrays (plain, single row)

_descr
multiple_rows = 0
_buffer
class test_create_values_plain_multiple

Bases:test_numerictypes.create_values, TestCase

Check the creation of heterogeneous arrays (plain, multiple rows)

_descr
multiple_rows = 1
_buffer
class test_create_values_nested_single

Bases:test_numerictypes.create_values, TestCase

Check the creation of heterogeneous arrays (nested, single row)

_descr
multiple_rows = 0
_buffer
class test_create_values_nested_multiple

Bases:test_numerictypes.create_values, TestCase

Check the creation of heterogeneous arrays (nested, multiple rows)

_descr
multiple_rows = 1
_buffer
class read_values_plain

Bases:object

Check the reading of values in heterogeneous arrays (plain)

test_access_fields(self)
class test_read_values_plain_single

Bases:test_numerictypes.read_values_plain, TestCase

Check the creation of heterogeneous arrays (plain, single row)

_descr
multiple_rows = 0
_buffer
class test_read_values_plain_multiple

Bases:test_numerictypes.read_values_plain, TestCase

Check the values of heterogeneous arrays (plain, multiple rows)

_descr
multiple_rows = 1
_buffer
class read_values_nested

Bases:object

Check the reading of values in heterogeneous arrays (nested)

test_access_top_fields(self)

Check reading the top fields of a nested array

test_nested1_acessors(self)

Check reading the nested fields of a nested array (1st level)

test_nested2_acessors(self)

Check reading the nested fields of a nested array (2nd level)

test_nested1_descriptor(self)

Check access nested descriptors of a nested array (1st level)

test_nested2_descriptor(self)

Check access nested descriptors of a nested array (2nd level)

class test_read_values_nested_single

Bases:test_numerictypes.read_values_nested, TestCase

Check the values of heterogeneous arrays (nested, single row)

_descr
multiple_rows = False
_buffer
class test_read_values_nested_multiple

Bases:test_numerictypes.read_values_nested, TestCase

Check the values of heterogeneous arrays (nested, multiple rows)

_descr
multiple_rows = True
_buffer
class TestEmptyField

Bases:TestCase

test_assign(self)
class TestCommonType

Bases:TestCase

test_scalar_loses1(self)
test_scalar_loses2(self)
test_scalar_wins(self)
test_scalar_wins2(self)
test_scalar_wins3(self)
class TestMultipleFields

Bases:TestCase

setUp(self)
_bad_call(self)
test_no_tuple(self)
test_return(self)