The Rapid Prototyping Laboratory's Workcell Execution Interface.
Project description
wei
The Workcell Execution Interface (WEI) for Autonomous Discovery/Self Driving Laboratories (AD/SDLs)
For more details and specific examples of how to use wei, please see our documentation.
Table of Contents
Installation
There are 2 options for installing WEI:
- A bare-metal install, which can be used in most contexts where python can run.
- A containerized install using docker and docker-compose
Bare-Metal Install
pip3 install --upgrade pip
git clone https://github.com/AD-SDL/wei/
cd wei
pip3 install -e .
Docker Install
- Install Docker for your platform of choice
- Clone the repository.
- Within the cloned repository, run the following:
scripts/docker/build.sh
Getting Started
See the wei_template_workcell for a simple example that can be used to try WEI or start your own workcell.
Development
- First, install pdm.
- Next, run the following in the cloned repo's directory:
pip install pre-commit ruff
pdm install
pre-commit install
Using Pre-commit
- To run pre-commit checks before committing, run
pre-commit run --all-files
- NONE OF THE FOLLOWING SHOULD BE DONE REGULARLY, AND ALL CHECKS SHOULD BE PASSING BEFORE BRANCHES ARE MERGED
- To skip linting during commits, use
SKIP=ruff git commit ...
- To skip formatting during commits, use
SKIP=ruff-format git commit ...
- To skip all pre-commit hooks, use
git commit --no-verify ...
- To skip linting during commits, use
- See pre-commit documentation for more
Using pdm
- Managing Dependencies
- Build and Publish
- Running Using PDM
pdm run engine <args>
to start the WEI enginepdm run server <args>
to start the WEI serverpdm run <arbitrary command>
to run an arbitrary command inside the python environment
Contributing
Please report bugs, enhancement requests, or questions through the Issue Tracker.
If you are looking to contribute, please see CONTRIBUTING.md
.
Citing
@Article{D3DD00142C,
author ="Vescovi, Rafael and Ginsburg, Tobias and Hippe, Kyle and Ozgulbas, Doga and Stone, Casey and Stroka, Abraham and Butler, Rory and Blaiszik, Ben and Brettin, Tom and Chard, Kyle and Hereld, Mark and Ramanathan, Arvind and Stevens, Rick and Vriza, Aikaterini and Xu, Jie and Zhang, Qingteng and Foster, Ian",
title ="Towards a modular architecture for science factories",
journal ="Digital Discovery",
year ="2023",
pages ="-",
publisher ="RSC",
doi ="10.1039/D3DD00142C",
url ="http://dx.doi.org/10.1039/D3DD00142C",
abstract ="Advances in robotic automation{,} high-performance computing (HPC){,} and artificial intelligence (AI) encourage us to conceive of science factories: large{,} general-purpose computation- and AI-enabled self-driving laboratories (SDLs) with the generality and scale needed both to tackle large discovery problems and to support thousands of scientists. Science factories require modular hardware and software that can be replicated for scale and (re)configured to support many applications. To this end{,} we propose a prototype modular science factory architecture in which reconfigurable modules encapsulating scientific instruments are linked with manipulators to form workcells{,} that can themselves be combined to form larger assemblages{,} and linked with distributed computing for simulation{,} AI model training and inference{,} and related tasks. Workflows that perform sets of actions on modules can be specified{,} and various applications{,} comprising workflows plus associated computational and data manipulation steps{,} can be run concurrently. We report on our experiences prototyping this architecture and applying it in experiments involving 15 different robotic apparatus{,} five applications (one in education{,} two in biology{,} two in materials){,} and a variety of workflows{,} across four laboratories. We describe the reuse of modules{,} workcells{,} and workflows in different applications{,} the migration of applications between workcells{,} and the use of digital twins{,} and suggest directions for future work aimed at yet more generality and scalability. Code and data are available at https://ad-sdl.github.io/wei2023 and in the ESI."}
License
WEI is MIT licensed, as seen in the LICENSE file.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
ad_sdl_wei-0.5.1.dev2.tar.gz
(36.2 kB
view hashes)
Built Distributions
Close
Hashes for ad_sdl_wei-0.5.1.dev2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4bb93b4d26c555c64d89d5579efc83593162b9a654b9bc583bfa4d19415ef33c |
|
MD5 | 8bb9afc0b46eca6581847f951c3e2b23 |
|
BLAKE2b-256 | 325e00422589c53b07a24c0f8b365c441f1593f3a7c28807d9dbb8a3f3e6251c |
Close
Hashes for ad_sdl.wei-0.5.1.dev2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 76a089ab7988bab4d1423353338bcb20d23242ad267e7de81862bb3cf6a9b914 |
|
MD5 | 26c78f13df7da6665e7a21b16b9baa67 |
|
BLAKE2b-256 | 487e5879f7d10f88e5a662cdbf22a32bfb4811a124f33e6e837ed783cefdc76b |