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[SimpleGrammar]

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

Warning

Since SimpleGrammar cannot make a distinction between the types of data in a NumPy array, it is assumed that those types are numeric and can differentiate. You may use another type of grammar if the distinction is needed.

Parameters:

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