Commit 5ff2e3589c19c46ee4ce9dbc3a9985e8e837b807

Authored by Jürgen Knödlseder
1 parent ca1bd30d

Limit the choices to the options that are implemented

Showing 1 changed file with 7 additions and 6 deletions
dev/codegen.py
@@ -606,18 +606,19 @@ def main_menu(): @@ -606,18 +606,19 @@ def main_menu():
606 """ 606 """
607 # Print main menu 607 # Print main menu
608 print('[1] Add instrument module') 608 print('[1] Add instrument module')
609 - print('[2] Add spectral model')  
610 - print('[3] Add spatial model')  
611 - print('[4] Add temporal model')  
612 - print('[4] Add generic class') 609 + #print('[2] Add spectral model')
  610 + #print('[3] Add spatial model')
  611 + #print('[4] Add temporal model')
  612 + #print('[4] Add generic class')
613 print('[q] Quit') 613 print('[q] Quit')
614 614
615 # Wait for the input 615 # Wait for the input
616 waiting = True 616 waiting = True
617 while waiting: 617 while waiting:
618 choice = str(raw_input('Enter your choice: ')) 618 choice = str(raw_input('Enter your choice: '))
619 - if choice == '1' or choice == '2' or choice == '3' or choice == '4' or \  
620 - choice == 'q': 619 + #if choice == '1' or choice == '2' or choice == '3' or choice == '4' or \
  620 + # choice == 'q':
  621 + if choice == '1' or choice == 'q':
621 waiting = False 622 waiting = False
622 623
623 # Return choice 624 # Return choice