print ("\n Download the text files required ... " ) print ("\n Only the manifest text files (~325 M) will be downloaded and no TESS data." ) print ("\n This step may take a while but luckily it only has to run once... \n" ) # ------------------------------------------------ #check whether the chosen (output) directory already exists, and if it doesn't create the directory. if not os.path.exists("{}".format(indir)): os.makedirs(indir) if not os.path.exists("{}/data".format(indir)): os.makedirs("{}/data".format(indir)) # ------------------------------------------------ # ----- REFERENCE FILES DOWNLOAD ----- LATTEutils.data_files(indir) LATTEutils.tp_files(indir) LATTEutils.TOI_TCE_files(indir) LATTEutils.momentum_dumps_info(indir) # ----- # if the user chooses to redefine the path elif args.new_path == True: reply = yes_or_no() # double check that they really want to do that. if reply == True: indir = input("\n \n Please enter a path to save the files (e.g. ./LATTE_output or /Users/yourname/Desktop/LATTE_output) : " ) # SAVE the new output path with open("{}/_config.txt".format(syspath),'w') as f:
# this is also the first time that the program is being run, so download all the data that is required. print ("\n Download the text files required ... " ) print ("\n Only the manifest text files (~325 M) will be downloaded and no TESS data." ) print ("\n This step may take a while but luckily it only has to run once... \n" ) # ------------------------------------------------ #check whether the chosen (output) directory already exists, and if it doesn't create the directory. if not os.path.exists("{}/data".format(indir)): os.makedirs("{}/data".format(indir)) # ------------------------------------------------ # ----- REFERENCE FILES DOWNLOAD ----- utils.data_files(indir) utils.tp_files(indir) utils.TOI_TCE_files(indir) utils.momentum_dumps_info(indir) # ----- # if the user chooses to redefine the path elif args.new_path == True: reply = yes_or_no() # double check that they really want to do that. if reply == True: indir = input("\n \n Please enter a path to save the files (e.g. ./LATTE_output or /Users/yourname/Desktop/LATTE_output) : " ) #try three times to find the output path