code: def legacy_approximant_name(apx):
      
      apx = str(apx)
      try:
          order = sim.GetOrderFromString(apx)
      except:
          print("Warning: Could not read phase order from string, using default")
          order = -1
      name = sim.GetStringFromApproximant(sim.GetApproximantFromString(apx))
      return name, order
docs: Convert the old style xml approximant name to a name
      and phase_order. Alex: I hate this function. Please delete this when we
      use Collin's new tables.