def gogetprotein(hangouttime,flowon,initforce): print("getting protein for " + str(hangouttime) + " sec") trap = Trap("1", "XY") trap.move_to(waypoint="measure point",speed=4) stage.move_to("J1") stage.move_to("Ch1") setpressure(0.12) if flowon: fluidics.open(1,2,3,4,6) pause(hangouttime) fluidics.close(1,2,3,4,6) stage.move_to("J1") stage.move_to("buffer")
def stretchitout(stretchtime): print("pre stretch time: "+ str(stretchtime) + " sec") f1=trap2.current_force print(" initial force: " + str(round(f1,2))) trap = Trap("1", "XY") trap.move_to(waypoint="more streatch",speed=4) pause(stretchtime) trap.move_to(waypoint="measure point",speed=4) pause(2) f2=trap2.current_force print(" final force: " + str(round(f2,2))) if f2<(0.5*f1) and f1 > 1: print("it broke") return 0 return 1
pause(stepsize) print(" " + str(round(i * stepsize * 100 / time)) + "% of time has elapsed (" + str(round(i * stepsize / 60, 1)) + " min)") # MAIN ====================================== hangtime = 5 #how long it stays stretched imagetime = 400 #how long to image for proteintime = 3 #waiting for protein to bind excitation_lasers.green = 0 trap = Trap("1", "XY") # stretching print("stretching for " + str(hangtime) + " sec") trap.move_to(waypoint="more streatch", speed=5) timeprogression(hangtime, 5) trap.move_to(waypoint="measure point", speed=5) print("stretch done") print("just hanging out for a bit for protein binding (" + str(proteintime) + " sec)") timeprogression(proteintime, 5) #turn on laser excitation_lasers.green = 30 #start imaging confocal.start_scan("Rep kymo") print("Scan started: " + str(imagetime) + "sec") timeprogression(imagetime, 10)
_( _( (~ ( _=~ _C(~ ( ( ( _C=(~~ (_ __ ~~~==(X _(_ _@@_ _ ~(C_ C(~ (_ ~((~ (_ ~(C_ (~ _C(_ _( (C_ (C_C(C_( _=~ (C_ ~( C( (C _( ~(_ ( _ (C ( ~C ~(_ ( (_ (C (_ ~C ~( (_ (_ ~( """ print(bb) #THIS IS THE START OF THE MAIN ----------------------------------------- finished = 0 while finished == 0: finished = thelooploop() #if want to move to ch4 to ready for experiment start if echannel == 1: movetoch4() trap.move_to(waypoint="stretched", speed=3) print('ready to image!') bigbird()
print("hopefully we finished") return 1 #THIS IS THE START OF THE MAIN ----------------------------------------- chk = 0 while chk == 0: print("starting loop loop") chk = themainloop() if chk == 1: chk = false_positive() else: target_traps = traps[:2] target_traps[1].clear() target_traps[0].clear() #hopefully caught something, move to buffer channel and reset all stage.move_to("buffer") gohome() fluidics.stop_flow() reset_force() print("in the buffer channel with all reset") #if want to move to ch4 to ready for experiment start if echannel == 1: movetoch4() trap.move_to(waypoint="Point 2", speed=3) print('ready to image!')