diff --git a/docs/api/models.html b/docs/api/models.html index 435bc1d..fc24f30 100644 --- a/docs/api/models.html +++ b/docs/api/models.html @@ -2263,7 +2263,7 @@

Methods

-

def clone(

self: ~MODEL, pk: Any = <object object at 0x1036d3c60>)

+

def clone(

self: ~MODEL, pk: Any = <object object at 0x1056d3c60>)

diff --git a/docs/hal/board.html b/docs/hal/board.html index dc88acd..18ce8e3 100644 --- a/docs/hal/board.html +++ b/docs/hal/board.html @@ -1064,6 +1064,7 @@

Index

@@ -1155,6 +1156,8 @@

openoligo.hal.board module

air_pressure: Switch liquid_regulator_err: DigitalSensor air_regulator_err: DigitalSensor + server_led: Switch + runner_led: Switch fixed_pinout: FixedPinoutDict = { @@ -1169,6 +1172,17 @@

openoligo.hal.board module

"air_pressure": Switch(gpio_pin=board.P29), "liquid_regulator_err": DigitalSensor(gpio_pin=board.P31), "air_regulator_err": DigitalSensor(gpio_pin=board.P33), + "server_led": Switch(gpio_pin=board.P36), + "runner_led": Switch(gpio_pin=board.P38), +} + +reactants = { + "ACT": Valve(gpio_pin=board.P18), + "OXI": Valve(gpio_pin=board.P19), + "CAP1": Valve(gpio_pin=board.P21), + "CAP2": Valve(gpio_pin=board.P22), + "DEB": Valve(gpio_pin=board.P23), + "CLDE": Valve(gpio_pin=board.P24), } @@ -1189,15 +1203,15 @@

openoligo.hal.board module

def __init__( self, phosphoramidites: Dict[str, Valve], - reactants: Dict[str, Valve], ): """ Initialize the pinout. """ self.fixed = fixed_pinout - self.phosphoramidites = phosphoramidites self.reactants = reactants + self.phosphoramidites = phosphoramidites + self.__pinout: Dict[str, Switchable] = {} self.init_pinout() @@ -1285,6 +1299,14 @@

Module variables

var fixed_pinout

+
+
+ +
+
+

var reactants

+ +
@@ -1346,6 +1368,8 @@

Classes

air_pressure: Switch liquid_regulator_err: DigitalSensor air_regulator_err: DigitalSensor + server_led: Switch + runner_led: Switch
@@ -1550,15 +1574,15 @@

Methods

def __init__( self, phosphoramidites: Dict[str, Valve], - reactants: Dict[str, Valve], ): """ Initialize the pinout. """ self.fixed = fixed_pinout - self.phosphoramidites = phosphoramidites self.reactants = reactants + self.phosphoramidites = phosphoramidites + self.__pinout: Dict[str, Switchable] = {} self.init_pinout() diff --git a/docs/hal/index.html b/docs/hal/index.html index e76a23e..183a1e6 100644 --- a/docs/hal/index.html +++ b/docs/hal/index.html @@ -1635,15 +1635,15 @@

Methods

def __init__( self, phosphoramidites: Dict[str, Valve], - reactants: Dict[str, Valve], ): """ Initialize the pinout. """ self.fixed = fixed_pinout - self.phosphoramidites = phosphoramidites self.reactants = reactants + self.phosphoramidites = phosphoramidites + self.__pinout: Dict[str, Switchable] = {} self.init_pinout() diff --git a/docs/hal/instrument.html b/docs/hal/instrument.html index aae05e3..8edd191 100644 --- a/docs/hal/instrument.html +++ b/docs/hal/instrument.html @@ -1108,14 +1108,15 @@

openoligo.hal.instrument module

import logging from typing import Callable -import anyio - from openoligo.hal.board import Pinout from openoligo.hal.devices import DigitalSensor, Valve from openoligo.hal.gpio import get_gpio from openoligo.hal.types import OneDestinationException, OneSourceException, ValveRole, board from openoligo.utils.singleton import Singleton +# import anyio + + default_pinout = Pinout( phosphoramidites={ "A": Valve(gpio_pin=board.P26), @@ -1123,14 +1124,6 @@

openoligo.hal.instrument module

"G": Valve(gpio_pin=board.P15), "T": Valve(gpio_pin=board.P16), }, - reactants={ - "ACT": Valve(gpio_pin=board.P18), - "OXI": Valve(gpio_pin=board.P19), - "CAP1": Valve(gpio_pin=board.P21), - "CAP2": Valve(gpio_pin=board.P22), - "DEB": Valve(gpio_pin=board.P23), - "CLDE": Valve(gpio_pin=board.P24), - }, ) @@ -1250,7 +1243,7 @@

openoligo.hal.instrument module

self.pinout.fixed["liquid_pressure"].set(False) self.pinout.fixed["air_pressure"].set(False) - #async def monitor_pressure(self) -> None: + # async def monitor_pressure(self) -> None: # """ # Monitor the pressure sensors. # """ @@ -1415,7 +1408,7 @@

Classes

self.pinout.fixed["liquid_pressure"].set(False) self.pinout.fixed["air_pressure"].set(False) - #async def monitor_pressure(self) -> None: + # async def monitor_pressure(self) -> None: # """ # Monitor the pressure sensors. # """ diff --git a/docs/scripts/runner.html b/docs/scripts/runner.html index 94380b1..0b3bcd5 100644 --- a/docs/scripts/runner.html +++ b/docs/scripts/runner.html @@ -1109,8 +1109,8 @@

openoligo.scripts.runner module

from anyio import run, sleep from openoligo.api.db import db_init, get_db_url +from openoligo.api.helpers import get_next_task # set_failed_now, from openoligo.api.helpers import ( - get_next_task, # set_failed_now, set_completed_now, set_log_file, set_started_now,