Skip to content

Commit

Permalink
locations have a carrier or None
Browse files Browse the repository at this point in the history
#34, #19
  • Loading branch information
qPCR4vir committed Aug 19, 2019
1 parent b648b90 commit 9bc1160
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions EvoScriPy/labware.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,9 @@ def __init__(self, grid=None, site=None, carrier=None, carrier_site=None, workta
grid = carrier.grid
assert 1 <= grid <= len(self.worktable.grids)
self.grid = grid
if self.carrier is None:
self.carrier = self.worktable.carriers_grid[self.grid]

site -= 1 # TODO revise - it will be an error if site is None
assert 0 <= site <= self.worktable.n_sites
self.site = site
Expand Down

0 comments on commit 9bc1160

Please sign in to comment.