as2fm.as2fm_common.array_type.ArrayInfo

class as2fm.as2fm_common.array_type.ArrayInfo(array_type: Type[int | float] | str | None, array_dimensions: int, array_max_sizes: List[int | None], is_base_type: bool = True)

Bases: object

Representation of metadata about an array, including its type, dimensions, and maximum sizes for each dimension.

Attribute array_type:

The data type of the array elements.

Attribute array_dimensions:

The number of dimensions of the array.

Attribute array_max_sizes:

A list specifying the maximum size for each dimension of the array.

Attribute is_base_type:

Whether the array_type is assumed to be a float or int, i.e. not a custom object.

__init__(array_type: Type[int | float] | str | None, array_dimensions: int, array_max_sizes: List[int | None], is_base_type: bool = True) None

Methods

__init__(array_type, array_dimensions, ...)

substitute_unbounded_dims(max_size)

Substitute the 'None' entries in the array_max_sizes with the provided max_size.

Attributes

is_base_type

array_type

array_dimensions

array_max_sizes

substitute_unbounded_dims(max_size: int)

Substitute the ‘None’ entries in the array_max_sizes with the provided max_size.