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 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.

Initialize self. See help(type(self)) for accurate signature.

Parameters:

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