args = parser.parse_args() requested_steps = args.steps.split(",") for step in requested_steps: if step not in C.existing_steps: print("\nInvalid processing step: " + step) print("Valid steps: ",', '.join(C.existing_steps),"\n") print("Exiting") sys.exit() if args.platform not in C.known_platforms: sys.exit("unknown platform - Exiting") v = MetadataUtils(command_line_args = args) # this will read the args and ini file and return a dictionary data_object = v.validate_args() # for attr in dir(data_object): # print("obj.%s = %s" % (attr, getattr(data_object, attr))) # set logging print("\nLog Level set to:", args.loglevel) logger.setLevel(args.loglevel.upper() )
#CRITICAL A serious error, indicating that the program itself may be unable to continue running. args = parser.parse_args() requested_steps = args.steps.split(",") for step in requested_steps: if step not in C.existing_steps: print("\nInvalid processing step: " + step) print("Valid steps: ", ', '.join(C.existing_steps), "\n") print("Exiting") sys.exit() if args.platform not in C.known_platforms: sys.exit("unknown platform - Exiting") v = MetadataUtils(command_line_args=args) # this will read the args and ini file and return a dictionary data_object = v.validate_args() # for attr in dir(data_object): # print("obj.%s = %s" % (attr, getattr(data_object, attr))) # set logging print("\nLog Level set to:", args.loglevel) logger.setLevel(args.loglevel.upper()) logger.info("Starting pipeline") ############## #