vaspparser.vasp.vasprun.get_float_with_exception#
- vaspparser.vasp.vasprun.get_float_with_exception(text, exception_value=0.0)[source]#
Converts a text into a corresponding float or returns exception_value if it can’t do this
- Parameters:
text (str/numpy.str_) – String to convert to float
exception_value (float/None) – Value to be returned if you can’t text to a float
- Returns:
Exception value
- Return type:
float/None