-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
adds crystal plate interface for making subwell positions
- Loading branch information
David Erb
committed
May 2, 2023
1 parent
ef76b2d
commit a62b5ea
Showing
5 changed files
with
56 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
from abc import ABC, abstractmethod | ||
from typing import Dict, Optional, Tuple | ||
|
||
|
||
class Interface(ABC): | ||
""" | ||
This is the required API interface for an Authorizer object. | ||
""" | ||
|
||
@abstractmethod | ||
# ---------------------------------------------------------------------------------------- | ||
def get_well_count(self) -> int: | ||
pass | ||
|
||
# ---------------------------------------------------------------------------------------- | ||
@abstractmethod | ||
def normalize_subwell_name(self, subwell_name: str) -> str: | ||
""" | ||
Converts the name given to the subwell by Luigi into the "position" format shown in soakdb3. | ||
Args: | ||
subwell_name (str): stem part of the subwell's image filename | ||
Raises: | ||
ValueError: the value does not follow the convention | ||
Returns: | ||
str: the displayable subwell position | ||
""" | ||
pass | ||
|
||
# ---------------------------------------------------------------------------------------- | ||
@abstractmethod | ||
def compute_drop_location_microns( | ||
self, | ||
crystal_well_record: Dict, | ||
) -> Tuple[Optional[int], Optional[int]]: | ||
pass |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters