import re


def get_suff(path):
    """ Get the suffix from a parameter directory path. """
    scinote = re.compile(r'[+-]?\d+(?:\.?\d*(?:[eE][+-]?\d+)?)?')
    patterns = re.findall(scinote, str(path))
    return float(patterns[-1])