format_for_type

Full name: ase2sprkkr.common.grammar_types.format_for_type

ase2sprkkr.common.grammar_types.format_for_type(format, type)[source]

Returns the format appropriate to the given type

Parameters

format (str or dict) – If it is str, just return it. Dict should has the form { type : format_for_the_type } + { None : default_format }