コード例 #1
0
        if reagent is 'Wash 1':
            port = 2
        else:
            port = 8

        biochem.flush_flowcell(port)

    elif method is 'hyb':
        biochem.hyb()

    elif method is 'incubate_reagent':
        print "\n***\t*\t--> Please, enter minutes for incubation [integer]: ",
        time = int(sys.stdin.readline().strip(
        ))  # use stdin explicitly and remove trailing new-line character
        biochem.incubate_reagent(time)

    elif method is 'init':
        biochem.init()

    else:
        print '\n***\t*\t--> Error: not correct method input!\n--> Double check method name (2nd argument)\n'
        sys.exit()

    #-------------------------- Duration of biochemistry test ------------------------------

    delta = (time.time() -
             t0) / 60  # Calculate elapsed time for flowcell flush.
    logger.warn(
        '***\t*\t--> Finished %s method execution - duration: %0.2f minutes\n\n'
        % delta)
コード例 #2
0
ファイル: fluidics_utils.py プロジェクト: REC17/Polonator
        reagent = str(sys.stdin.readline().strip())  # use stdin explicitly and remove trailing new-line character

        if reagent is 'Wash 1':
            port = 2
        else:
            port = 8 

        biochem.flush_flowcell(port)

    elif method is 'hyb':
        biochem.hyb()

    elif method is 'incubate_reagent':
        print "\n***\t*\t--> Please, enter minutes for incubation [integer]: ",
        time = int(sys.stdin.readline().strip())  # use stdin explicitly and remove trailing new-line character
        biochem.incubate_reagent(time)

    elif method is 'init':
        biochem.init()






    else:
     print '\n***\t*\t--> Error: not correct method input!\n--> Double check method name (2nd argument)\n'
     sys.exit()

    #-------------------------- Duration of biochemistry test ------------------------------