type_from_value

Full name: ase2sprkkr.common.grammar_types.type_from_value

ase2sprkkr.common.grammar_types.type_from_value(value, type_map={})[source]

Gues the grammar type from a python value.

..doctest:: >>> type_from_value(2) <Integer>

>>> type_from_value(2.0)
<Real>