GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com โ€” GitHub - aiidateam/aiida-workgraph: Efficiently design and manage flexible workflows with AiiDA, featuring an interactive GUI, checkpoints, provenance tracking, and remote execution capabilities.

BranchesTags
Open more actions menu

Latest commit

 

History

500 Commits
500 Commits

Folders and files

NameName
Last commit message
Last commit date
.github/workflows
.github/workflows
 
 
docs
docs
 
 
src/aiida_workgraph
src/aiida_workgraph
 
 
tests
tests
 
 
.git-blame-ignore-revs
.git-blame-ignore-revs
 
 
.gitignore
.gitignore
 
 
.pre-commit-config.yaml
.pre-commit-config.yaml
 
 
.readthedocs.yaml
.readthedocs.yaml
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
codecov.yml
codecov.yml
 
 
pyproject.toml
pyproject.toml
 
 
pytest.ini
pytest.ini
 
 
uv.lock
uv.lock
 
 

Repository files navigation

AiiDA-WorkGraph

PyPI version Unit test codecov Docs status

A powerful Python library for creating, managing, and executing scalable scientific workflows with automatic data provenance.


โœจ Why AiiDA-WorkGraph?

AiiDA-WorkGraph empowers researchers and developers to build complex, reproducible workflows with ease.

  • ๐ŸŽจ Pythonic Workflow Design: Define workflows using familiar Python functions and decorators.
  • ๐Ÿ–ฅ๏ธ Interactive GUI: Visualize, monitor, and debug your workflows in real-time with a user-friendly web interface.
  • ๐Ÿ”— Automatic Data Provenance: Guarantee scientific reproducibility with zero effort. The complete history of all data and calculations is automatically tracked.
  • ๐Ÿš€ Remote & Parallel Execution: Seamlessly offload tasks to remote supercomputers and run them concurrently.
  • ๐Ÿง  Dynamic Control Flow: Build adaptive workflows that respond to data at runtime using standard Python if/else statements and loops.
  • ๐Ÿ›ก๏ธ Checkpointing & Error Handling: Protect long-running workflows from interruptions and build resilient logic to recover from failures.
  • โšก High-Throughput Computing: Built to scale, AiiDA-WorkGraph can efficiently manage thousands of concurrent workflows.
  • ๐Ÿงฉ Reusable Components: Encapsulate common routines as sub-workflows and easily reuse them in larger, more complex pipelines.

๐Ÿš€ Getting Started

1. Installation

pip install aiida-workgraph

First, ensure you have a working AiiDA environment.

verdi presto  # Or 'verdi quicksetup' for a detailed setup

2. Quick Start Example

Let's create a simple workflow to calculate $(x + y) \times z$.

1๏ธโƒฃ Define Tasks

Use the @task decorator to turn Python functions into workflow components.

from aiida_workgraph import task

@task
def add(x, y):
    """Adds two numbers."""
    return x + y

@task
def multiply(x, y):
    """Multiplies two numbers."""
    return x * y

2๏ธโƒฃ Compose a Workflow

Use the @task.graph decorator to link tasks. Data flows naturally from one task's output to the next one's input.

@task.graph
def add_multiply(x, y, z):
    """A workflow to add two numbers and then multiply by a third."""
    sum_result = add(x, y).result
    product_result = multiply(x=sum_result, y=z).result
    return product_result

3๏ธโƒฃ Run the Workflow

Build the workflow with your inputs and run it.

from aiida import load_profile

# Load your AiiDA profile
load_profile()

# Build and run the workflow
results = add_multiply.run(x=2, y=3, z=4)

# Print the final result
print(f"โœ… Result: {results}")
# Expected output: โœ… Result: 20

4๏ธโƒฃ Automatic Provenance Tracking

AiiDA-WorkGraph automatically generates a detailed provenance graph, tracking the full history of data and calculations to ensure full traceability and reproducibility. Here is an example of the provenance graph generated for the above workflow:

Provenance Graph Example


๐Ÿ› ๏ธ Flexible Workflow Construction

AiiDA-WorkGraph supports three complementary approaches to building workflows, letting you choose the best method for your needs.

  • ๐Ÿ Pythonic Workflows (Recommended): Use @task.graph for clean, readable, and powerful workflows, as shown in the Quick Start.

  • ๐Ÿ‘๏ธ Visual Graph with Explicit Logic: Use zones like If, While, and Map to build a graph where the control flow is visually explicit.

  • โš™๏ธ Low-Level Node-Graph Programming: Programmatically define each task and link them manually for maximum control and dynamic graph generation.


๐Ÿ–ฅ๏ธ Interactive GUI

Visualize, monitor, and debug your workflows in real-time. To launch the GUI, first install the package and then run:

pip install aiida-gui-workgraph
aiida-gui start

Navigate to http://127.0.0.1:8000/workgraph in your web browser.

AiiDA-WorkGraph Web UI

Note: The GUI is an experimental feature and is under active development.


๐Ÿ”— Useful Links

  • ๐Ÿ“š Full Documentation: Dive deep into all features and capabilities.
  • ๐Ÿงช Demo & Examples Repository: See real-world examples with various computational codes.
  • ๐Ÿง‘โ€๐Ÿ’ป Development & Contribution: Learn how to contribute to the project.
  • ๐Ÿ“„ License: AiiDA-WorkGraph is licensed under the MIT License.

About

Efficiently design and manage flexible workflows with AiiDA, featuring an interactive GUI, checkpoints, provenance tracking, and remote execution capabilities.

aiida-workgraph.readthedocs.io/en/latest/

Topics

aiidadatabasematerials-sciencenodetreeprovenance-trackingscienceworkflow

Resources

Readme
MIT license
Activity
Custom properties

Stars

33 stars

Watchers

2 watching

Forks

16 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402775 โ€” GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800ร—600. No cookies required.