science_jubilee.tools.PeristalticPumps#
Classes#
class representation of peristaltic pumps. Due to duet-level axis definition requirements, currently requires an accompanying PumpDispenser tool to control pumps. |
Module Contents#
- class science_jubilee.tools.PeristalticPumps.PeristalticPumps(n_pumps: int, steps_per_ml: float | int | list, tool_axis: str = 'E', name: str = 'dispenser_pumps')[source]#
Bases:
science_jubilee.tools.Tool.Tool
class representation of peristaltic pumps. Due to duet-level axis definition requirements, currently requires an accompanying PumpDispenser tool to control pumps.
- Parameters:
n_pumps (int) – Number of peristaltic pumps
steps_per_mL (float, int, list) – stepper motor steps to turn pump to pump 1mL of liquid. calibrate gravimetrically. Can pass a float or int to apply same value to each pump or list to apply unique value to each pump.
tool_axis (str) – Motion axis tool is defined to on duet. Default E
name (str) – name of tool
- classmethod from_config(config_file: str, path: str = os.path.join(os.path.dirname(__file__), 'configs'))[source]#
Initialize a PeristalticPumps object from a config file
- Parameters:
config_file (str) – The name of the config file containign the pump parameters
- Returns:
A
PeristalticPumps
object- Return type: