Refactor into modular molecular workloads

This commit is contained in:
Emil
2026-07-13 22:50:56 +03:00
parent df4bda6acb
commit 34beb8b0aa
19 changed files with 798 additions and 290 deletions
+19
View File
@@ -0,0 +1,19 @@
"""Minimal interface implemented by every SciMesh workload."""
from __future__ import annotations
import argparse
from typing import Protocol
class Workload(Protocol):
"""A workload that can add its CLI and execute from parsed arguments."""
name: str
help: str
def configure_parser(self, parser: argparse.ArgumentParser) -> None:
"""Add workload-specific command-line arguments."""
def run(self, args: argparse.Namespace) -> int:
"""Execute the workload."""