pipettenblock eingefügt
This commit is contained in:
parent
5c3d35cbfe
commit
d319f348b4
@ -46,10 +46,10 @@ class LabPip(LabPis):
|
|||||||
self.e=self.top
|
self.e=self.top
|
||||||
return self.sendE()
|
return self.sendE()
|
||||||
|
|
||||||
def get_tip(self,x,y,z):
|
def get_tip(self,l):
|
||||||
self.x = x
|
self.x = l[0]
|
||||||
self.y = y
|
self.y = l[1]
|
||||||
self.z = z
|
self.z = l[2]
|
||||||
return self.go_top() + self.sendXYZ()
|
return self.go_top() + self.sendXYZ()
|
||||||
|
|
||||||
def up(self):
|
def up(self):
|
||||||
@ -60,21 +60,27 @@ class LabPip(LabPis):
|
|||||||
class LabPipBlock():
|
class LabPipBlock():
|
||||||
""" Pipettenblock description"""
|
""" Pipettenblock description"""
|
||||||
|
|
||||||
def __init__(self,xoffset,yoffset,anz,rows,deltax,deltay):
|
def __init__(self,xoffset,yoffset,z,anz,rows,deltax,deltay):
|
||||||
self.xoffset = xoffset
|
self.xoffset = xoffset
|
||||||
self.yoffset = yoffset
|
self.yoffset = yoffset
|
||||||
self.anz = anz
|
self.anz = anz
|
||||||
self.rows = rows
|
self.rows = rows
|
||||||
self.deltax = deltax
|
self.deltax = deltax
|
||||||
self.deltay = deltay
|
self.deltay = deltay
|
||||||
|
self.z = z
|
||||||
self.akt = 0
|
self.akt = 0
|
||||||
|
|
||||||
def next(self):
|
def next(self):
|
||||||
if self.akt == self.anz:
|
if self.akt == self.anz:
|
||||||
return f'No more tips !!'
|
return f'No more tips !!'
|
||||||
else :
|
else :
|
||||||
pass
|
r = self.anz / self.rows
|
||||||
|
m = self.akt % r # column
|
||||||
|
c = self.akt // r # row
|
||||||
|
self.akt += 1
|
||||||
|
x = self.xoffset - (m * self.deltax)
|
||||||
|
y = self.yoffset - (c * self.deltax)
|
||||||
|
return x,y,self.z
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -83,10 +89,15 @@ v1 = LabPis(200,200,100,21)
|
|||||||
a1 = LabPis(100,100,100,1)
|
a1 = LabPis(100,100,100,1)
|
||||||
p1 = LabPis()
|
p1 = LabPis()
|
||||||
|
|
||||||
|
lpb = LabPipBlock(200,200,100,20,5,8,10)
|
||||||
|
|
||||||
|
#for n in range(22):
|
||||||
|
# print (lpb.next())
|
||||||
|
|
||||||
pip = LabPip(vol=500)
|
pip = LabPip(vol=500)
|
||||||
pip.fe =5000
|
pip.fe =5000
|
||||||
|
#print(pip)
|
||||||
|
|
||||||
|
print(pip.get_tip(lpb.next()))
|
||||||
|
#print(pip.up())
|
||||||
print(pip)
|
print(pip)
|
||||||
print(pip.get_tip(150,150,50))
|
|
||||||
print(pip.up())
|
|
||||||
print(pip)
|
|
||||||
Loading…
Reference in New Issue
Block a user