format_for_type

Full name: ase2sprkkr.bindings.xband.tests.grammar_types.grammar_type.format_for_type

ase2sprkkr.bindings.xband.tests.grammar_types.grammar_type.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 }