def standardise_name(name):
 try:
  return numeric_to_rational(''.join(name))
 except (ValueError, ZeroDivisionError):
  return ''.join((ch for ch in name if (ch not in '_- '))).upper()

def standardise_name ( name ) : try : return numeric_to_rational ( '' . join ( name ) ) except ( ValueError , ZeroDivisionError ) : return '' . join ( ( ch for ch in name if ( ch not in '_- ' ) ) ) . upper ( )
standardises a property or value name .