exatomic.qe.types module

QE Type Conversions

exatomic.qe.types.to_qe_type(value)[source]

Convert Python object to the (string) representation to be read in by QE.

Parameters:

obj – Python object to be converted

Returns:

conv_obj (str) – String representation of converted Python object

exatomic.qe.types.to_py_type(value)[source]

Convert qe string object to a standard Python object.

Parameters:

obj (str) – QE string value

Returns:

conv_obj – Python typed object

exatomic.qe.types.get_length(value)[source]