def fie_to_di(d):
    """Converts dimensions from feet-inches-eigths to decimal inches"""
    if isinstance(d, str):
        fie = d.split('-')
    else:
        return d
    if len(fie) == 3:
        return 12 * float(fie[0]) + float(fie[1]) + float(fie[2]) / 8.0
    else:
        return d
