gemseo / core / data_converters

Show inherited members

simple module

Data values to NumPy arrays and vice versa from a SimpleGrammar.

class gemseo.core.data_converters.simple.SimpleGrammarDataConverter(grammar)[source]

Bases: BaseDataConverter

Data values to NumPy arrays and vice versa from a SimpleGrammar.

Parameters:

grammar (BaseGrammar) – The grammar providing the data types used for the conversions.

is_numeric(name)[source]

Check that a data item can be converted to a NumPy array.

Parameters:

name (str) – The name of the data item.

Returns:

Whether the data item can be converted to a NumPy array.

Return type:

bool