Skip to content

Commit

Permalink
Allows for continuous use
Browse files Browse the repository at this point in the history
Allows the user to continuously use the program without closing the whole program without the user telling the program to close.
  • Loading branch information
kjkoeller committed Nov 2, 2022
1 parent 2bb91eb commit 2a16968
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
Author: Kyle Koeller
Created: 8/29/2022
Last Updated: 10/26/2022
Last Updated: 11/02/2022
"""

import tess_data_search
Expand All @@ -18,35 +18,30 @@
def main():
print()
print("Which program do you want to run?")
print("TESS database search(1), AIJ/TESS Night Filters(2), AIJ Comp Selector(3), O'Connel Effect(4), TESS Data Download(5), Color Light Curve(6)")
print("TESS database search(1), AIJ/TESS Night Filters(2), AIJ Comp Selector(3), O'Connel Effect(4), TESS Data Download(5), Color Light Curve(6), Close program(7)")
print("")

while True:
prompt = int(input("Please type out the number corresponding to the corresponding action: "))
if prompt == 1:
tess_data_search.main()
break
elif prompt == 2:
aij = input("AIJ or TESS: ")
if aij.lower() == "aij":
AIJ_Night_Filters.main(0)
break
elif aij.lower() == "tess":
TESS_Night_Filters.main(0)
break
else:
print("You did not enter AIJ or TESS please go back through the prompts again and enter AIJ or TESS.")
elif prompt == 3:
APASS_AIJ_comparison_selector.main()
break
elif prompt == 4:
OConnell.main()
break
elif prompt == 5:
tess_data_search.main()
break
elif prompt == 6:
color_light_curve.color_gui(False)
elif prompt == 7:
break
else:
print("You have not entered any of the allowed entries, please try again.")
Expand Down

0 comments on commit 2a16968

Please sign in to comment.