Skip to content

Commit

Permalink
Added Gaia Data Search (#109)
Browse files Browse the repository at this point in the history
Added Gaia data search to allow a user to search the Gaia database.
  • Loading branch information
kjkoeller authored Mar 9, 2023
1 parent 35028a5 commit 9a71408
Showing 1 changed file with 35 additions and 13 deletions.
48 changes: 35 additions & 13 deletions EclipsingBinaries/menu.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,33 +3,47 @@
other programs.
Author: Kyle Koeller
Created: 8/29/2022
Last Updated: 01/30/2023
Last Updated: 03/07/2023
"""

"""
# testing imports
from tess_data_search import main as data_search
from Night_Filters import main as night
from apass import comparison_selector as comp_select
from OConnell import main as oconnell
from color_light_curve import color_gui as gui
from IRAF_Reduction import main as IRAF
from OC_plot import main as data_fit
from gaia import main
"""
from .tess_data_search import main as data_search
from .Night_Filters import main as night
from .apass import comparison_selector as comp_select
from.OConnell import main as oconnell
from .OConnell import main as oconnell
from .color_light_curve import color_gui as gui
from .IRAF_Reduction import main as IRAF
from .OC_plot import main as data_fit
from .gaia import main as gaia


def main():
print("If you need a description of what each option does, please refer to the README for this packages GitHub page"
" https://github.com/kjkoeller/Binary_Star_Research_Package")
print("\nWhich program do you want to run?\n")
print("\nWhich program do you want to run?\n\n")

while True:
print(
"TESS Database Search/Download(1), AIJ/TESS Night Filters(2), AIJ Comparison Star Selector(3), O'Connel Effect(4), "
"Color Light Curve(5), IRAF Reduction(6), O-C Plotting(7), Close Program(8)\n")
print("")
"IRAF Reduction(1), TESS Database Search/Download(2), AIJ Comparison Star Selector(3), "
"BSUO or SARA/TESS Night Filters(4), O-C Plotting(5), Gaia Search(6), O'Connel Effect(7), "
"Color Light Curve(8), Close Program(9)\n")
prompt = int(input("Please type out the number corresponding to the corresponding action: "))
if prompt == 1:
if prompt == 2:
# tess data
data_search()
elif prompt == 2:
aij = input("AIJ or TESS or 'Go Back': ")
elif prompt == 4:
# night filters for AIJ and TESS
aij = input("BSUO/SARA or TESS or 'Go Back': ")
if aij.lower() == "aij":
night(0)
elif aij.lower() == "tess":
Expand All @@ -39,17 +53,25 @@ def main():
else:
print("\nYou did not enter AIJ or TESS please go back through the prompts again and enter AIJ or TESS.\n")
elif prompt == 3:
# comparison finder
comp_select()
elif prompt == 4:
elif prompt == 7:
# o'connell effect
oconnell()
elif prompt == 5:
elif prompt == 8:
# color light curve
gui(False)
elif prompt == 6:
elif prompt == 1:
# iraf reduction
IRAF()
elif prompt == 7:
elif prompt == 5:
# O-C plotting
data_fit()
elif prompt == 8:
# close program
break
elif prompt == 6:
gaia()
else:
print("\nYou have not entered any of the allowed entries, please try again.\n")

Expand Down

0 comments on commit 9a71408

Please sign in to comment.