The Modular Autonomous Discovery for Science (MADSci) Experiment Application framework.
Project description
MADSci Experiment Application
The MADSci Experiment Application provides a framework for creating and managing scientific experiments within the MADSci ecosystem.
Overview
The ExperimentApplication class serves as a base class for creating experiment applications that can:
- Manage experiment lifecycle (start, pause, cancel, end)
- Interact with MADSci manager services (experiment, data, resource, workcell, event)
- Handle experiment conditions and resource validation
- Operate in both standalone and server modes
Key Features
- Experiment Management: Start, pause, resume, cancel, and end experiments
- Resource Validation: Evaluate resource conditions before experiment execution
- Event Logging: Integrated logging through the event management system
- Context Management: Automatic experiment context handling
- Server Mode: Can operate as a REST node for remote experiment execution
Dependencies
madsci.common: Shared types and utilitiesmadsci.client: Client libraries for MADSci servicesmadsci.node_module: Node framework for REST endpoints
Usage
from madsci.experiment_application import ExperimentApplication
# Create an experiment application
app = ExperimentApplication(
experiment_design=my_experiment_design,
experiment_server_url="http://localhost:8002"
)
# Start and manage an experiment
with app.manage_experiment(run_name="My Experiment"):
# Your experiment code here
pass
Configuration
The application can be configured through environment variables, TOML files, or direct instantiation:
- Environment prefix:
EXPERIMENT_ - Config files:
experiment.env,experiment.settings.toml, etc.
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file madsci_experiment_application-0.5.0rc2.tar.gz.
File metadata
- Download URL: madsci_experiment_application-0.5.0rc2.tar.gz
- Upload date:
- Size: 10.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: pdm/2.26.0 CPython/3.9.24 Linux/6.14.0-1012-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6b821f37839bdd510b2b469dd4ecfe45031628c9c043b38d480e769b3414036c
|
|
| MD5 |
2dba55be757452c2d1c562bc79459edf
|
|
| BLAKE2b-256 |
53d0b8479ab50fe54fe9bddae72e95a344d48b45d033b281e408e5657d824d75
|
File details
Details for the file madsci_experiment_application-0.5.0rc2-py3-none-any.whl.
File metadata
- Download URL: madsci_experiment_application-0.5.0rc2-py3-none-any.whl
- Upload date:
- Size: 6.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: pdm/2.26.0 CPython/3.9.24 Linux/6.14.0-1012-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b60f05109f6f7f5e86f8b1dc5d0c2d8cc5f9ea9eae98e489ae44119e34d99dc7
|
|
| MD5 |
f1ff7f242289a21a6c857341a15c6bde
|
|
| BLAKE2b-256 |
b793ce945d19027cfa086b5649ee33af8c076e5fba34f73239f838ced5b07fdf
|