iodata.test.test_attrutils module

Unit tests for iodata.attrutils.

class FooBar(spam)[source]

Bases: object

Just a silly class for testing convert_array_to.

__init__(spam)

Method generated by attrs for class FooBar.

spam: ndarray[Any, dtype[float]]
class NoName0(xxx)[source]

Bases: object

Test exception in validate_shape: unsupported item in shape_requirements.

__init__(xxx)

Method generated by attrs for class NoName0.

xxx: str
class NoName1(xxx)[source]

Bases: object

Test exception in validate_shape: unsupported item in shape_requirements.

__init__(xxx)

Method generated by attrs for class NoName1.

xxx: str
class NoName2(xxx)[source]

Bases: object

Test exception in validate_shape: other doest not exist.

__init__(xxx)

Method generated by attrs for class NoName2.

xxx: str
class NoName3(xxx, other)[source]

Bases: object

Test exception in validate_shape: other is not an array.

__init__(xxx, other)

Method generated by attrs for class NoName3.

other
xxx: str
class Spam(egg0, egg1, egg2, egg3, leg)[source]

Bases: object

Just a silly class for testing validate_shape.

__init__(egg0, egg1, egg2, egg3, leg)

Method generated by attrs for class Spam.

egg0: ndarray[Any, dtype[TypeVar(_ScalarType_co, bound= generic, covariant=True)]]
egg1: ndarray[Any, dtype[TypeVar(_ScalarType_co, bound= generic, covariant=True)]]
egg2: ndarray[Any, dtype[TypeVar(_ScalarType_co, bound= generic, covariant=True)]]
egg3: ndarray[Any, dtype[TypeVar(_ScalarType_co, bound= generic, covariant=True)]]
leg: str
test_convert_array_to_assign()[source]
test_convert_array_to_init()[source]
test_validate_shape_assign()[source]
test_validate_shape_exceptions()[source]
test_validate_shape_init()[source]