-
Notifications
You must be signed in to change notification settings - Fork 178
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'edge' into refactor_react-api-client-host-object
- Loading branch information
Showing
675 changed files
with
7,301 additions
and
2,608 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
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
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
Large diffs are not rendered by default.
Oops, something went wrong.
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,11 @@ | ||
from .abstract import AbstractAbsorbanceReaderDriver | ||
from .driver import AbsorbanceReaderDriver | ||
from .simulator import SimulatingDriver | ||
from .hid_protocol import AbsorbanceHidInterface | ||
|
||
__all__ = [ | ||
"AbstractAbsorbanceReaderDriver", | ||
"AbsorbanceReaderDriver", | ||
"SimulatingDriver", | ||
"AbsorbanceHidInterface", | ||
] |
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,45 @@ | ||
from abc import ABC, abstractmethod | ||
from typing import Dict, List | ||
from opentrons.drivers.types import AbsorbanceReaderLidStatus | ||
|
||
|
||
class AbstractAbsorbanceReaderDriver(ABC): | ||
@abstractmethod | ||
async def connect(self) -> None: | ||
"""Connect to absorbance reader""" | ||
... | ||
|
||
@abstractmethod | ||
async def disconnect(self) -> None: | ||
"""Disconnect from absorbance reader""" | ||
... | ||
|
||
@abstractmethod | ||
async def is_connected(self) -> bool: | ||
"""Check connection to absorbance reader""" | ||
... | ||
|
||
@abstractmethod | ||
async def get_lid_status(self) -> AbsorbanceReaderLidStatus: | ||
... | ||
|
||
@abstractmethod | ||
async def get_available_wavelengths(self) -> List[int]: | ||
... | ||
|
||
@abstractmethod | ||
async def get_single_measurement(self, wavelength: int) -> List[float]: | ||
... | ||
|
||
@abstractmethod | ||
async def initialize_measurement(self, wavelength: int) -> None: | ||
... | ||
|
||
@abstractmethod | ||
async def get_status(self) -> None: | ||
... | ||
|
||
@abstractmethod | ||
async def get_device_info(self) -> Dict[str, str]: | ||
"""Get device info""" | ||
... |
Oops, something went wrong.