Skip to content

Commit

Permalink
Arranging Updates
Browse files Browse the repository at this point in the history
Rearrange the order of execution to make it simpler and easier for the user.
  • Loading branch information
kjkoeller authored Nov 4, 2022
1 parent eb7b4a5 commit baa7b2a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions APASS_AIJ_comparison_selector.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"""
Author: Kyle Koeller
Created: 2/8/2022
Last Updated: 11/03/2022
Last Updated: 11/04/2022
APASS Star comparison finding for the most accurate magnitudes from the list of stars made in AIJ
"""
Expand All @@ -24,23 +24,23 @@ def main():
"""
# reads the text files to be analyzed for comparison star matches between APASS and Simbad
# apass_file = input("Enter the text file name for the generated APASS stars: ")
apass_file = cousins.main()
print("Must have all files in the same folder as the Python code OR type out the full file pathway to the file.")
radec_file = input("Enter the text file name for the RADEC file from AIJ or type 'Close' to exit the program: ")
if radec_file.lower() == "close":
exit()
apass_file = cousins.main()
while True:
test = 0
try:
df = pd.read_csv(apass_file, header=None, skiprows=[0], sep="\t")
dh = pd.read_csv(radec_file, header=None, skiprows=7)
except FileNotFoundError:
print("Files were not found, please enter them again.")
print("File was not found, please enter them again.")
print()
test = -1
if test == 0:
break
else:
apass_file = input("Enter the text file name for the generated APASS stars: ")
radec_file = input("Enter the text file name for the RADEC file from AIJ: ")
# noinspection PyUnboundLocalVariable
duplicate_df = angle_dist(df, dh)
Expand Down

0 comments on commit baa7b2a

Please sign in to comment.