# time.sleep(60) #### Send alert if UDP isnt reading def send_alert(): server = smtplib.SMTP("smtp.gmail.com", 587) #### Custom Script def custom_functions(elapsed_time, exp_name): global OD_data, temp_data if OD_data == 'empty': print("UDP Empty, did not execute program!") else: ###load script from another python file custom_script.test(OD_data, temp_data, vials, elapsed_time, exp_name) ### Runs if this is main script if __name__ == '__main__': global graph_exp exp_name = 'glugal_mux_expt_2' vials = range(0, 16) start_time, OD_initial = eVOLVER_module.initialize_exp(exp_name, vials) root = Tk() make_GUI(root) graph_exp = root.after(60000 * 5, update_Graphs) update_eVOLVER() root.mainloop()
##Make decision custom_functions(elapsed_time, exp_name) #Save Variables global run_exp eVOLVER_module.save_var(exp_name, start_time, OD_initial) run_exp = root.after(5000, update_eVOLVER) #### Custom Script def custom_functions(elapsed_time, exp_name): global OD_data, temp_data if OD_data == 'empty': print("UDP Empty, did not execute program!") else: ###load script from another python file custom_script.test(OD_data, temp_data, vials, elapsed_time, exp_name) #### Runs if this is main script if __name__ == '__main__': exp_name, evolver_ip, evolver_port = custom_script.choose_name() vials = range(0, 16) start_time, OD_initial = eVOLVER_module.initialize_exp( exp_name, vials, evolver_ip, evolver_port) root = Tk() make_GUI(root) update_eVOLVER() root.mainloop()