def main(): try: if os.path.isdir(signal_path) is False: raise NameError("signal_path= " + signal_path + " does not exist!") if os.path.isdir(output_path) is False: os.mkdir(output_path) print("Successfuly created an unexist folder! output_path= " + output_path) if os.path.isdir(output_path2) is False: os.mkdir(output_path2) print("Successfuly created an unexist folder! output_path2= " + output_path2) if os.path.isdir(output_path3) is False: os.mkdir(output_path3) print("Successfuly created an unexist folder! output_path3= " + output_path3) common_process(output_path + file_name_list[0] + "_signal.npy", main_fnc, True) except Exception as ex: _, _, tb = sys.exc_info() print("[IQconvert:" + str(tb.tb_lineno) + "] " + str(ex) + "\n\n")
def main(): try: if os.path.isdir(signal_path) is False: raise NameError("signal_path= " + signal_path + " does not exist!") if os.path.isdir(answer_path) is False: raise NameError("answer_path= " + answer_path + " does not exist!") common_process(signal_path + file_name_list[0] + "_signal_test.npy", main_fnc, True) except Exception as ex: _, _, tb = sys.exc_info() print("[simple_convert:" + str(tb.tb_lineno) + "] " + str(ex) + "\n\n")
def main(): try: if os.path.isdir(signal_path) is False: raise NameError("signal_path= " + signal_path + " does not exist!") if os.path.isdir(compare_path) is False: raise NameError("compare_path= " + compare_path + " does not exist!") common_process(None, main_fnc, True) except Exception as ex: _, _, tb = sys.exc_info() print("[analysis:" + str(tb.tb_lineno) + "] " + str(ex) + "\n\n")