gemseo.core.data_converters.simple module#
Data values to NumPy arrays and vice versa from a SimpleGrammar.
- class SimpleGrammarDataConverter(grammar)[source]#
Bases:
BaseDataConverter[SimpleGrammar]Data values to NumPy arrays and vice versa from a
SimpleGrammar.Warning
Since
SimpleGrammarcannot 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.