def main(): h.verbosity = h.LOG_DEBUG c.set_default_config() if __debug__: if QUALITY == "DEV": h.verbosity = h.LOG_DEBUG c.CONFIG['PROJECT']['Directory'] = Path.home().joinpath \ ("Documents/McGill/_Research/Durcan_Lab/qPCR_program/qPCR_Program-0.1.5/idlab/Gilles_plates") c.set_global_config(argv[0]) #get_cmd_args() h.log( h.LOG_INFO, "\nPlease select the input directory (Containing the input data and project .config file)" ) root = Tk() root.withdraw() c.CONFIG['PROJECT']['Directory'] = askdirectory( title= "Please select the input directory (Containing the input data and project .config file)" ) root.destroy() p.process_root_directory() h.log(h.LOG_INFO, "\nAll done")
def main(args): set_global_config(Config(True)) repo_name = str(args.repo) if repo_name == "release": repo.pull_repo(Config.get_global().release_loc) elif repo_name == "content_repos": for repo_loc in Config.get_global().content_repos: repo.pull_repo(repo_loc) elif repo_name == "inst": repo.pull_repo(Config.get_global().release_loc) repo.update_inst_server() else: assert False, "Shouldn't reach here. Is some repo unimplemented?" return 0
def main(args): set_global_config(Config(True)) disc = Discussion(args.discussion_tag) action = args.action if action == "make_discussion": disc.build_discussion() disc.push_discussion() elif action == "make_discussion_local": disc.build_discussion() elif action == "make_answers": disc.build_answers() disc.push_answers() elif action == "make_answers_local": disc.build_answers() else: assert False, "Should not reach here. Is an action in VALID_ACTIONS not implemented?" return 0
def main(args): set_global_config(Config(True)) hw = Homework(int(args[1])) print(hw.get_num_questions()) return 0
def main(args): set_global_config(Config(True)) hw = Homework(int(args[1])) hw.generate_self_grade_form() return 0