# NOTE: this class will eventually be flushed into a UI
class PFTSelector():

  def select_pft(meteor_input, prev_pfts):
    print("possible PFTs:", end = ' ')
    poss_pfts = meteor_input.pfts(0,8)
    # convert to string to make pft datatype flexible
    poss_pfts = list(map(str, poss_pfts))
    for pft in poss_pfts:
      print(str(int(pft)+1), end = ' ')
    if not prev_pfts:
        print()
    else:
        print(" Previously Optimized PFTs:",prev_pfts)

    pft_selected = input("Select a PFT: ")
    pft_0 = int(pft_selected) - 1
    while str(pft_0) not in poss_pfts:
      print ("That's an invalid pft")
      pft_selected = input("Select a PFT:")
      pft_0 = int(pft_selected) - 1
    return pft_0

006fbb80ca7026e7c3c3a3983d25582e6503998d
<mask token>

class PFTSelector:
    <mask token>

class PFTSelector:

    def select_pft(meteor_input, prev_pfts):
        print('possible PFTs:', end=' ')
        poss_pfts = meteor_input.pfts(0, 8)
        poss_pfts = list(map(str, poss_pfts))
        for pft in poss_pfts:
            print(str(int(pft) + 1), end=' ')
        if not prev_pfts:
            print()
        else:
            print(' Previously Optimized PFTs:', prev_pfts)
        pft_selected = input('Select a PFT: ')
        pft_0 = int(pft_selected) - 1
        while str(pft_0) not in poss_pfts:
            print("That's an invalid pft")
            pft_selected = input('Select a PFT:')
            pft_0 = int(pft_selected) - 1
        return pft_0

# NOTE: this class will eventually be flushed into a UI
class PFTSelector():

  def select_pft(meteor_input, prev_pfts):
    print("possible PFTs:", end = ' ')
    poss_pfts = meteor_input.pfts(0,8)
    # convert to string to make pft datatype flexible
    poss_pfts = list(map(str, poss_pfts))
    for pft in poss_pfts:
      print(str(int(pft)+1), end = ' ')
    if not prev_pfts:
        print()
    else:
        print(" Previously Optimized PFTs:",prev_pfts)

    pft_selected = input("Select a PFT: ")
    pft_0 = int(pft_selected) - 1
    while str(pft_0) not in poss_pfts:
      print ("That's an invalid pft")
      pft_selected = input("Select a PFT:")
      pft_0 = int(pft_selected) - 1
    return pft_0
