pretty_symbols
Full name: ase2sprkkr.ase.symbols.pretty_symbols
- ase2sprkkr.ase.symbols.pretty_symbols(symbols)[source]
Make a symbols string more pretty. Especially suitable for a long 2D semiinfinite bulks.
> >> pretty_symbols(“GeXTeXGeXTeXGeXTeXGeXTeX9”) ‘{GeXTeX}4X8’ > >> pretty_symbols(“C4H4OC4H4OC2C4H4OC4H4OC2”) ‘{{C4H4O}2C2}2’ > >> pretty_symbols(“CO2”) ‘CO2’