def __init__(self, volume, speed=None, repetitions=None): assert check_volume(volume) assert speed is None or check_flowrate(speed) self.volume = volume self.speed = speed self.repetitions = repetitions
def __init__(self, from_=None, to=None, well=None, volume=None, speed=None, aspirate_speed=None, dispense_speed=None, mix_before=None, mix_after=None, repetitions=None): assert volume is None or check_volume(volume) assert speed is None or check_flowrate(speed) assert aspirate_speed is None or check_flowrate(aspirate_speed) assert dispense_speed is None or check_flowrate(dispense_speed) self.from_ = from_ self.to = to self.well = well self.volume = volume self.speed = speed self.aspirate_speed = aspirate_speed self.dispense_speed = dispense_speed self.mix_before = mix_before self.mix_after = mix_after self.repetitions = repetitions
def __init__(self, container, volume, groups, dyes=None, dataref=None, melting=None): assert check_volume(volume) self.object = container self.volume = volume self.groups = groups self.dyes = dyes self.dataref = dataref self.melting = melting
def test_check_volume(self): self.assertTrue(measures.check_volume("1:nanoliter")) self.assertTrue(measures.check_volume("0.5:microliter")) self.assertTrue(measures.check_volume("10:milliliter")) self.assertFalse(measures.check_volume("a:nanoliter")) self.assertFalse(measures.check_volume("1:femtoliter")) self.assertFalse(measures.check_volume("1:liter"))
def __init__(self, from_well, to_well, volume, aspirate_speed=None, dispense_speed=None, mix_before=None, mix_after=None): assert check_volume(volume) assert aspirate_speed is None or check_flowrate(aspirate_speed) assert dispense_speed is None or check_flowrate(dispense_speed) self.transfer = [TransferDetails( from_=from_well, to=to_well, volume=volume, aspirate_speed=aspirate_speed, dispense_speed=dispense_speed, mix_before=mix_before, mix_after=mix_after, )]
def __init__(self, from_well, to_well, volume, aspirate_speed=None, dispense_speed=None, mix_before=None, mix_after=None): assert check_volume(volume) assert aspirate_speed is None or check_flowrate(aspirate_speed) assert dispense_speed is None or check_flowrate(dispense_speed) self.transfer = [ TransferDetails( from_=from_well, to=to_well, volume=volume, aspirate_speed=aspirate_speed, dispense_speed=dispense_speed, mix_before=mix_before, mix_after=mix_after, ) ]