Colour match SDL
Description
Colour matching and SDL (Self-Driving Laboratory) simulation utilities for IvoryOS demos. This repository provides a simulated platform to run Bayesian Optimization for color matching, interfacing with simulated instruments.
Installation
First, ensure you have Python >= 3.10. Create a new virtual environment, then you can install the package and its dependencies:
# Install core dependencies
pip install -e .
# Or install with full dependencies (recommended for running all demos)
pip install -e .[full]
Alternatively, if installing purely from the requirements file:
pip install -r requirements.txt
The versions in requirements.txt are frozen reference versions for this repository.
IvoryOS
ivoryos is required to run the IvoryOS demos and is included in requirements.txt,
but it is not a dependency of the package, so pip install -e . / .[full] won't install it. In that case, install it separately:
pip install ivoryos
Usage
Order to go through the scripts
In the scripts folder
- instruments.py
- multiposition_vici_valve.py
- demo_prepare_stock_solution_complete.py
- demo_prepare_stock_solution_with_analyze.py
- demo_data_visualization_matplotlib.py
- demo_data_visualization_plotly.py
- demo_bayesian_optimization.py
- demo_bayesian_optimization_matplotlib.py
- demo_bayesian_optimization_plotly.py
In the colour match folder
In the ivoryOS demo basic sdl folder
- ivoryos_basic_sdl/sdl.py
- Explore the workflow designer then load and run
In the ivoryOS colour match sdl folder
- ivorysos_colour_match_sdl/sdl.py
- Explore the workflow designer then load and run
In the docs folder
- picking_the_next_experiment.html: an interactive Bayesian optimization walkthrough. Download it and open it in a browser; no install needed. Part 1 steps through a one-variable reaction, and part 2 runs this repository's red, yellow and blue mixing simulator with ΔE00, including the grey-blue target those dyes cannot reach and what happens when green or purple is added to the search space.
In the examples folder
- Module 1 & 2: sdl_sim_app.py
- Module 3 & 4: color_match_app.py
- Module 1 & 2 in 3D (the 3D Sim plugin): sdl_sim_3d_app.py on ivoryOS, sdl_sim_3d_edge_app.py on ivoryos-next
3D Deck Simulation
sdl_sim_3d/ is the same simulation as the 2D sdl_sim_web panel, drawn as the real
UR3e bench: every call to the simulated instruments above (robotic_arm.pick_up_vial_from_tray(3),
capping_station.uncap_vial(), …) is played as the arm's real moves from the deck's location file
(home, the safe point, the approach point above the target, straight down, gripper, back out), next
to a log that reads like the ArmManager code. It runs three ways from the same build:
- ivoryOS:
ivoryos.run(__name__, blueprint_plugins=sdl_sim_3d.plugin.web_viz_3d_bp) - ivoryos-next:
ivoryos_edge.run(__name__, plugins=[sdl_sim_3d.next_plugin.plugin]) - standalone (sandbox):
python -m http.server -d sdl_sim_3d/static, no Python deck at all; the simulator runs in the page with a button per method and the stock-solution demo.
Use it instead of the 2D panel, not beside it: both listen to the same simulator, and only the one
configured last receives its events. The page's source and what is estimated versus taken from the
location file are in sdl_sim_3d/frontend/README.md; rebuild it with
npm run build there and commit sdl_sim_3d/static. The hackathon showcase of the same page lives at
github.com/ivoryzh/beavers-bench; this repository is the source.
Authors and acknowledgment
Rebekah Greenwood, Veronica Lai, Wenyu Zhang, Erin Lindenberg, and Jason E. Hein
Metadata
Release files for colour-match-sdl 0.1.10
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| colour_match_sdl-0.1.10.tar.gz | 276.3 kB | Without provenance | Details for colour_match_sdl-0.1.10.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| colour_match_sdl-0.1.10-py3-none-any.whl | Python 3 | none | any | Details for colour_match_sdl-0.1.10-py3-none-any.whl |
Total release size: 568.1 kB
Release files / colour_match_sdl-0.1.10.tar.gz
| Download URL | colour_match_sdl-0.1.10.tar.gz |
|---|---|
| Size | 276.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
95bb8468bc04b1f306d104484f8583ebcc12a53c5d178256afe92b0c15ca10ba
|
|
BLAKE2b-256 checksum How to use checksums |
0cb0b7e4d1b597fec429bccea4d199a6c5f635350351388d869a6085d51e4d40
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.18
|
Release files / colour_match_sdl-0.1.10-py3-none-any.whl
| Download URL | colour_match_sdl-0.1.10-py3-none-any.whl |
|---|---|
| Size | 291.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
db57453aa2b63f72a95b7a9956dabe58c806664cfc528dc70ecd6a92f3a27254
|
|
BLAKE2b-256 checksum How to use checksums |
2b00e4b32cdbecd2493750ee316e141be9bae7b404e2f07b09f0a6c92b7f6929
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.18
|
Security for colour-match-sdl 0.1.10
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.