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.0rc3.tar.gz (10.8 kB view details)

Uploaded Source

Built Distribution

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

File details

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

File metadata

File hashes

Hashes for madsci_experiment_application-0.5.0rc3.tar.gz
Algorithm Hash digest
SHA256 147497bb4c88640afc770ee524fcd825bc46781d048b4ee1c826f7cfc801e14e
MD5 62b019f879f59714d0d19d0cdaf62a70
BLAKE2b-256 f91ae3abc89ed6c64b1dc152af1002db81cf327f81c703cd5150448d2c37e8f3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for madsci_experiment_application-0.5.0rc3-py3-none-any.whl
Algorithm Hash digest
SHA256 86396221f69e7325ec85302e6f59757e09e7fa9d1a6264c7b132fb6353be8200
MD5 0000348d524ecdbe2b3a60dd5120d11e
BLAKE2b-256 9a7546bb8bb72a72861861783ff85b60822dcf92b1e47233bbbfd53cd1bee96c

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