Skip to main content

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

  1. instruments.py
  2. multiposition_vici_valve.py
  3. demo_prepare_stock_solution_complete.py
  4. demo_prepare_stock_solution_with_analyze.py
  5. demo_data_visualization_matplotlib.py
  6. demo_data_visualization_plotly.py
  7. demo_bayesian_optimization.py
  8. demo_bayesian_optimization_matplotlib.py
  9. demo_bayesian_optimization_plotly.py

In the colour match folder

  1. bayesian_optimization_colour_match.py

In the ivoryOS demo basic sdl folder

  1. ivoryos_basic_sdl/sdl.py

In the ivoryOS colour match sdl folder

  1. ivorysos_colour_match_sdl/sdl.py

In the examples folder

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.9

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for colour-match-sdl 0.1.9
File Size Uploaded Provenance Actions
colour_match_sdl-0.1.9.tar.gz 272.4 kB Without provenance Details for colour_match_sdl-0.1.9.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for colour-match-sdl 0.1.9
File Interpreter ABI Platform Actions
colour_match_sdl-0.1.9-py3-none-any.whl Python 3 none any Details for colour_match_sdl-0.1.9-py3-none-any.whl

Total release size: 559.2 kB

Release files / colour_match_sdl-0.1.9.tar.gz

Download URL colour_match_sdl-0.1.9.tar.gz
Size 272.4 kB
Tags Source
SHA-256 checksum
How to use checksums
880bc97689c562c1c7d22a4ee85454af54a45cd60cd9bb1e55456e70125dfeec
BLAKE2b-256 checksum
How to use checksums
11f2b005750d7a5a29514150a3392ff893db5e0ac7554fbb8327c5a2f25489d9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.17

Release files / colour_match_sdl-0.1.9-py3-none-any.whl

Download URL colour_match_sdl-0.1.9-py3-none-any.whl
Size 286.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
10bc56f6e1aaa040b079a18c0ef0131fa2a1e404ba54047dcf0dbfce450ad1b9
BLAKE2b-256 checksum
How to use checksums
098ecdb0c788de10959cfb716e06c8571b3d6035bc4738a7556a338d7867e38b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.17

Security for colour-match-sdl 0.1.9

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page