superscript_number

emmet.core.featurization.robocrys.util.superscript_number(string)

Converts a string containing numbers to superscript.

Will only convert the numbers 0-9, and the + and - characters.

Args:

string: A string containing the numbers 0-9 or +/- characters.

Returns:

The superscript string.