Skip to main content

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 utilities
  • madsci.client: Client libraries for MADSci services
  • madsci.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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

madsci_experiment_application-0.5.0.tar.gz (10.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

madsci_experiment_application-0.5.0-py3-none-any.whl (6.2 kB view details)

Uploaded Python 3

File details

Details for the file madsci_experiment_application-0.5.0.tar.gz.

File metadata

  • Download URL: madsci_experiment_application-0.5.0.tar.gz
  • Upload date:
  • Size: 10.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: pdm/2.26.0 CPython/3.9.23 Linux/6.11.0-1018-azure

File hashes

Hashes for madsci_experiment_application-0.5.0.tar.gz
Algorithm Hash digest
SHA256 58f4e595dfd6a26fef2394a36e9f70be40b7eb32e30ed58521154fc4ad75e4e0
MD5 ec128b9e72818f29662c6035b9cf5d1c
BLAKE2b-256 a199e7a31cf5a7f21d1ada981c0f9258d0301cf9343c0567ab36a8814d14426b

See more details on using hashes here.

File details

Details for the file madsci_experiment_application-0.5.0-py3-none-any.whl.

File metadata

File hashes

Hashes for madsci_experiment_application-0.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 92612ca9e1aa9f8fb1237154358c38768b742f0c7ef19ce75f822b31a40ceeaf
MD5 a0588b176eb5cec93a41f421aecb872b
BLAKE2b-256 46f80d012158153dc9b6cdacceb8ce77fc7daf327bf06ef7163c5294b61dc8e3

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page