t0 = time.time() # get current time logger = Logger(config) # initialize logger object biochem = Biochem( 'WL1', int(sys.argv[1]), logger ) # Initialize biochemistry object - cycle-name and flowcell-number need to be passed. #--------------------------------------------------------------------------------------- # FLUIDICS SUB-SYSTEM FUNCTIONS #--------------------------------------------------------------------------------------- logger.info('***\t*\t--> Started %s method execution - fluidics_utils.py' % sys.arg[2]) if method is 'clean_V1_to_syringe': biochem.clean_V1_to_syringe() elif method is 'clean_V2_to_syringe': biochem.clean_V2_to_syringe() elif method is 'clean_flowcell_and_syringe': biochem.clean_flowcell_and_syringe() elif method is 'cycle_ligation': biochem.cycle_ligation() elif method is 'draw_air_to_mixer': print "\n***\t*\t--> Please, enter air gap size [integer]: ", gap_size = int(sys.stdin.readline().strip( )) # use stdin explicitly and remove trailing new-line character biochem.draw_air_to_mixer(gap_size)
config = ConfigParser.ConfigParser() config.readfp(open('config.txt')) t0 = time.time() # get current time logger = Logger(config) # initialize logger object biochem = Biochem('WL1', int(sys.argv[1]), logger) # Initialize biochemistry object - cycle-name and flowcell-number need to be passed. #--------------------------------------------------------------------------------------- # FLUIDICS SUB-SYSTEM FUNCTIONS #--------------------------------------------------------------------------------------- logger.info('***\t*\t--> Started %s method execution - fluidics_utils.py' % sys.arg[2]) if method is 'clean_V1_to_syringe': biochem.clean_V1_to_syringe() elif method is 'clean_V2_to_syringe': biochem.clean_V2_to_syringe() elif method is 'clean_flowcell_and_syringe': biochem.clean_flowcell_and_syringe() elif method is 'cycle_ligation': biochem.cycle_ligation() elif method is 'draw_air_to_mixer': print "\n***\t*\t--> Please, enter air gap size [integer]: ", gap_size = int(sys.stdin.readline().strip()) # use stdin explicitly and remove trailing new-line character biochem.draw_air_to_mixer(gap_size)