Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Michael Osthege <m.osthege@fz-juelich.de>
  • Loading branch information
Y0dler and michaelosthege authored Jan 24, 2023
1 parent bca93a1 commit 656b7b1
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 40 deletions.
52 changes: 16 additions & 36 deletions robotools/evotools/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -291,10 +291,7 @@ def _prepare_evo_aspirate_dispense_parameters(
tip = _int_to_tip(tip)
tecan_tips.append(tip)

if tecan_tips:
return labware, wells, labware_position, volume, liquid_class, tecan_tips
else:
return labware, wells, labware_position, volume, liquid_class, tips
return labware, wells, labware_position, volume, liquid_class, tecan_tips


def _prepare_evo_wash_parameters(
Expand Down Expand Up @@ -459,38 +456,21 @@ def _prepare_evo_wash_parameters(
if not low_volume == 0 and not low_volume == 1:
raise ValueError("Parameter low_volume has to be 0 (no fast-wash) or 1 (use fast-wash).")

if tecan_tips:
return (
tecan_tips,
waste_location,
cleaner_location,
arm,
waste_vol,
waste_delay,
cleaner_vol,
cleaner_delay,
airgap,
airgap_speed,
retract_speed,
fastwash,
low_volume,
)
else:
return (
tips,
waste_location,
cleaner_location,
arm,
waste_vol,
waste_delay,
cleaner_vol,
cleaner_delay,
airgap,
airgap_speed,
retract_speed,
fastwash,
low_volume,
)
return (
tecan_tips,
waste_location,
cleaner_location,
arm,
waste_vol,
waste_delay,
cleaner_vol,
cleaner_delay,
airgap,
airgap_speed,
retract_speed,
fastwash,
low_volume,
)


def _optimize_partition_by(
Expand Down
4 changes: 0 additions & 4 deletions robotools/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -960,7 +960,6 @@ def test_parameter_validation(self) -> None:

return

# test complete evo_aspirate() command
def test_evo_aspirate1(self) -> None:
plate = liquidhandling.Labware("DWP", 8, 12, min_volume=0, max_volume=2000, initial_volumes=1000)
with evotools.Worklist() as wl:
Expand Down Expand Up @@ -995,7 +994,6 @@ def test_evo_aspirate2(self) -> None:
)
return

# test complete evo_dispense() command
def test_evo_dispense1(self) -> None:
plate = liquidhandling.Labware("DWP", 8, 12, min_volume=0, max_volume=2000, initial_volumes=1000)
with evotools.Worklist() as wl:
Expand All @@ -1013,7 +1011,6 @@ def test_evo_dispense1(self) -> None:
)
return

# test complete evo_dispense() command
def test_evo_dispense2(self) -> None:
plate = liquidhandling.Labware("DWP", 8, 12, min_volume=0, max_volume=2000, initial_volumes=1000)
with evotools.Worklist() as wl:
Expand All @@ -1031,7 +1028,6 @@ def test_evo_dispense2(self) -> None:
)
return

# test complete evo_wash() command
def test_evo_wash(self) -> None:
with evotools.Worklist() as wl:
wl.evo_wash(
Expand Down

0 comments on commit 656b7b1

Please sign in to comment.