Skip to content

Commit

Permalink
Fix labware in storex module.
Browse files Browse the repository at this point in the history
  • Loading branch information
sirno committed May 12, 2022
1 parent 720cfe0 commit fc71efb
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## 1.0.1 --- Pypetting Guidance System (WIP)

- Fix labware passed as string in storex module.

## 1.0.0 --- Pypetting Guidance System (Dec 16, 2021)

- Initial feature set
Expand Down
10 changes: 5 additions & 5 deletions pypetting/storex.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"""FACTS commands, specifically for StoreX incubator"""

from .misc import facts
from .labware import labwares
from .base import Labware

__all__ = [
"read_all_barcodes",
Expand All @@ -23,10 +23,10 @@ def read_plates_in_cartridge(cartridge: int):
return _facts_store_x("StoreX_ReadPlatesInCartridge", cartridge, False, "")


def present_plate(cartridge: int, position: int, labware: str):
def present_plate(cartridge: int, position: int, labware: Labware):
"""Present plate"""
return _facts_store_x(
"StoreX_PresentPlate", f"{cartridge},{position}", True, labwares[labware].name
"StoreX_PresentPlate", f"{cartridge},{position}", True, labware.name
)


Expand All @@ -35,13 +35,13 @@ def return_plate(cartridge: int, position: int):
return _facts_store_x("StoreX_ReturnPlate", f"{cartridge},{position}", False, "")


def present_plate_by_bc(bc_file_path, bc_file_line, labware):
def present_plate_by_bc(bc_file_path: str, bc_file_line: int, labware: Labware):
"""Present plate by barcode from file"""
return _facts_store_x(
"StoreX_PresentPlateByBarcode",
f"{bc_file_line},{bc_file_path}",
1,
labwares[labware].name,
labware.name,
)


Expand Down

0 comments on commit fc71efb

Please # to comment.