PytomatedLiquidHandling
Simplify liquid handling with a Python API!
Disclaimer: PytomatedLiquidHandling is not supported by Hamilton Company. Please direct all questions to this repo.
Documentation
See docstrings
Package installation
- Install 64-bit python >=3.11
- Update pip and install setuptools
- Install git
- Clone this repo to your PC
- cd into the repo folder and run 'pip install .'
- Start playing with the API
Example usage
from PytomatedLiquidHandling import Logger, Driver
from PytomatedLiquidHandling.Driver.TemperatureControl import HeaterShaker
import logging
import os
import time
LoggerInstance = Logger(
"MyLogger", logging.DEBUG, os.path.join(os.path.dirname(__file__), "Logging")
)
DriverHandlerInstance = Driver.Handler(LoggerInstance)
# Creates the handler so we can communicate with the Hamilton
ConnectCommand = HeaterShaker.Connect.Command(HeaterShaker.Connect.Options(1), False)
ConnectCommand.Execute()
HeaterShakerHandleId = ConnectCommand.GetHandleID()
# Connect and get our Handle
DesiredTemperature = 37
StartTempCommand = HeaterShaker.StartTemperatureControl.Command(
HeaterShaker.StartTemperatureControl.Options(
HeaterShakerHandleId, DesiredTemperature
),
False,
)
StartTempCommand.Execute()
# Turn on the Heat
#
# NOTE: See Examples/Driver/Hamilton_HeaterShaker.py for the rest!
#
See the Examples folder for more guidance on using the Driver, HAL, and API layers.
Future Directions
Please note that only the Driver layer is 100% functional. This will be updated as HAL and API is finalized.
Acknowledgements
Thanks to the following for inspiration:
https://github.com/dgretton/pyhamilton