def times_numeric(text):
    """
    A function to convert timepoints encoded within the filename
    into a float corresponding to the value in nanoseconds.
    
    Parameters:
    text (str): e.g. (100us)
    
    Returns:
    float: e.g. (100,000)
    """
    number = float(text[:-2])
    if text.endswith("ns"):
        return number
    elif text.endswith("us"):
        return 1e3*number
    elif text.endswith("ms"):
        return 1e6*number
    else:
        print("scale could not be calculated")