r2x 0.0.29

A framework plugin manager for the r2x power systems modeling ecosystem.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
"""Stub Sienna upgrader for integration tests."""

from __future__ import annotations

from pathlib import Path
from typing import Any


class SiennaUpgrader:
    """Upgrader that simply records the provided path."""

    def __init__(self, path: Path | str, **_: Any) -> None:
        self.path = Path(path)

    def run(self) -> str:
        return f'{{"upgraded": "sienna", "path": "{self.path}"}}'