Metadata-Version: 2.5
Name: tz-oss-interop
Version: 0.1.2
Summary: Translation tooling for energy-system model formats.
Project-URL: Homepage, https://github.com/transition-zero/tz-oss-interop
Project-URL: Repository, https://github.com/transition-zero/tz-oss-interop
Project-URL: Documentation, https://github.com/transition-zero/tz-oss-interop/tree/main/docs
Project-URL: Issues, https://github.com/transition-zero/tz-oss-interop/issues
Project-URL: Discussions, https://github.com/transition-zero/tz-oss-interop/discussions
Author-email: TransitionZero <info@transitionzero.org>
License-Expression: Apache-2.0
License-File: LICENSE
License-File: NOTICE
Keywords: energy,energy-system-modelling,osemosys,plexos,pypsa,sienna,translation
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Science/Research
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Topic :: Scientific/Engineering
Requires-Python: <3.14,>=3.11
Requires-Dist: dishka>=1.4
Requires-Dist: h5netcdf>=1.8.1
Requires-Dist: h5py>=3.16.0
Requires-Dist: humanize>=4.16.0
Requires-Dist: infrastore<0.16,>=0.14.1
Requires-Dist: juliacall>=0.9.37
Requires-Dist: netcdf4>=1.7.5
Requires-Dist: pandas>=3.0.6
Requires-Dist: polars>=2.0.0
Requires-Dist: power-openapi-models<0.3,>=0.2.0
Requires-Dist: pydantic>=2.14.1
Requires-Dist: pypsa>=1.4.0
Requires-Dist: pyyaml>=6
Requires-Dist: questionary>=2.0
Requires-Dist: requests>=2.34.2
Requires-Dist: scipy>=1.11
Requires-Dist: xarray>=2026.9.0
Description-Content-Type: text/markdown

# tz-oss-interop

[![Lint](https://github.com/transition-zero/tz-oss-interop/actions/workflows/lint.yml/badge.svg?branch=main)](https://github.com/transition-zero/tz-oss-interop/actions/workflows/lint.yml?query=branch%3Amain)
[![Test](https://github.com/transition-zero/tz-oss-interop/actions/workflows/test.yml/badge.svg?branch=main)](https://github.com/transition-zero/tz-oss-interop/actions/workflows/test.yml?query=branch%3Amain)
[![Mutation](https://github.com/transition-zero/tz-oss-interop/actions/workflows/mutation.yml/badge.svg?branch=main)](https://github.com/transition-zero/tz-oss-interop/actions/workflows/mutation.yml?query=branch%3Amain)
[![License](https://img.shields.io/badge/license-Apache--2.0-blue.svg)](LICENSE)

Translation tooling for energy-system model formats (PyPSA, Sienna, Plexos, OSeMOSYS). Pipelines compose source / step / sink plugins discovered from built-ins, project-local files, and installed third-party packages.

tz-oss-interop is beta software. It runs end to end on published models, and the plugin interfaces and pipeline YAML shape are settled enough to build on, but they still change between versions.

## Supported translations

Sienna is the hub. Most built-in pipelines translate a model into Sienna, or translate Sienna into a different format. The two canonical pipelines stage an OSeMOSYS model only. They write the canonical stage: the sets and the parameters of the model in one fixed schema, as Parquet files, which each OSeMOSYS translation reads.

```mermaid
flowchart LR
    plexos[PLEXOS]
    pypsa_in[PyPSA]
    osemosys[OSeMOSYS]
    sienna[Sienna]
    investments[Sienna investments]
    pypsa_out[PyPSA]

    plexos -->|"plexos-to-sienna<br/><i>plexos-to-pypsa, part 1</i>"| sienna
    pypsa_in -->|"pypsa-to-sienna<br/>pypsa-to-sienna-ensemble"| sienna
    osemosys -->|"osemosys-csv-to-sienna<br/>tz-osemosys-to-sienna"| sienna
    sienna -->|"sienna-to-pypsa<br/>sienna-to-pypsa-ensemble<br/><i>plexos-to-pypsa, part 2</i>"| pypsa_out
    plexos -->|plexos-to-sienna-investments| investments
    pypsa_in -->|pypsa-to-sienna-investments| investments
    osemosys -->|"osemosys-csv-to-sienna-investments<br/>tz-osemosys-to-sienna-investments"| investments
```

| Pipeline | From | To |
| --- | --- | --- |
| `plexos-to-sienna` | PLEXOS XML model | Sienna system |
| `plexos-to-sienna-investments` | PLEXOS XML model | Sienna system and Sienna investments portfolio |
| `plexos-to-pypsa` (composed via Sienna) | PLEXOS XML model | PyPSA network, from `plexos-to-sienna`, then `sienna-to-pypsa` |
| `pypsa-to-sienna` | PyPSA network | Sienna system |
| `pypsa-to-sienna-ensemble` | PyPSA network ensemble | Sienna system ensemble |
| `pypsa-to-sienna-investments` | PyPSA network | Sienna system and Sienna investments portfolio |
| `osemosys-csv-to-sienna` | otoole OSeMOSYS model (configuration YAML and CSV files) | Sienna system of one model year |
| `tz-osemosys-to-sienna` | TZ-format OSeMOSYS `model.json` | Sienna system of one model year |
| `osemosys-csv-to-sienna-investments` | otoole OSeMOSYS model | Sienna system and Sienna investments portfolio over every model year |
| `tz-osemosys-to-sienna-investments` | TZ-format OSeMOSYS `model.json` | Sienna system and Sienna investments portfolio over every model year |
| `osemosys-csv-to-canonical` | otoole OSeMOSYS model | Canonical OSeMOSYS stage, as Parquet files |
| `tz-osemosys-to-canonical` | TZ-format OSeMOSYS `model.json` | Canonical OSeMOSYS stage, as Parquet files |
| `sienna-to-pypsa` | Sienna system and its `extensions.json` | PyPSA network and its `extensions.json` |
| `sienna-to-pypsa-ensemble` | Sienna system ensemble | PyPSA network ensemble |
| `sienna-to-power-simulations` | Sienna system | PowerSimulations.jl system, which `solve` dispatches |
| `sienna-to-power-systems-investments` | Sienna investments portfolio and its base system | PowerSystemsInvestments.jl portfolio, which `solve` expands |

A Sienna investments portfolio is the SiennaSchemas document for an expansion problem. tz-oss-interop writes a portfolio, and the leg `sienna-to-power-systems-investments` reads one so that `solve` can expand it. An ensemble is a directory that holds one model for each Monte Carlo replication. The diagram shows the two parts of the composed pipeline `plexos-to-pypsa` in italics. `docs/developer_documentation/pipeline-composition.md` tells you how to compose a pipeline.

tz-oss-interop writes each value of a source model that a Sienna system has no field for to `extensions.json`, a sidecar file beside `system.json`. For example, it keeps an annual energy limit, the cost of a line, and the fuels that are not electricity. The sidecar names each value with the PyPSA attribute of the same meaning, for example `e_sum_min`. Sienna does not read it. The Sienna → PyPSA leg, `sienna-to-pypsa`, reads it, and gives each value that PyPSA has an attribute for to that attribute. Each other value goes on, unchanged, to the `extensions.json` beside the PyPSA network.

A results pipeline turns a solve, or a set of published results, into the [results format](docs/results-format.md). `compare` runs one results pipeline for each side.

| Results pipeline | From |
| --- | --- |
| `sienna-to-results` | PowerSimulations.jl solve of a Sienna system |
| `pypsa-to-results` | Solved PyPSA network |
| `power-systems-investments-to-results` | PowerSystemsInvestments.jl expansion solve |
| `aetos-to-results` | Published results of the AETOS OSeMOSYS model |
| `caiso-plexos-to-results` | Stack model and appendix CSV files of the CAISO 2026 Summer Assessment |

## Install

tz-oss-interop is managed with [`uv`](https://docs.astral.sh/uv/); if you do not already have it, follow uv's [installation instructions](https://docs.astral.sh/uv/getting-started/installation/). Then sync the environment:

```bash
uv sync
```

This creates `.venv/`, installs runtime and dev dependencies, and registers the `interop` console script. Prefix each command with `uv run`, and run it from the repository, so that uv finds this environment.

To get `interop` as a command that runs from any directory, install it as a uv tool instead:

```bash
uv tool install tz-oss-interop
```

If your shell does not find `interop`, run `uv tool update-shell`. Then open a new terminal.

The distribution on PyPI is `tz-oss-interop`, and the command and the import package are both `interop`. It was called `interop` before the first release; `docs/developer_documentation/extending.md` says how to move an existing install or git dependency across. Run `uv tool upgrade tz-oss-interop` to get a newer release. Run `uv tool uninstall tz-oss-interop` to remove it. The tool install does not give you the dev dependencies, so use `uv sync` to work on tz-oss-interop itself.

To install the unreleased code on `main` instead, name the repository:

```bash
uv tool install git+https://github.com/transition-zero/tz-oss-interop
```

## Quickstart

`interop` launches a questionary-driven interactive shell. From the
shell, pick `init` to scaffold a project, `cd` into it, then re-launch
`interop` and pick `translate` to run the example pipeline:

```bash
uv run interop      # pick: init, target = my-interop-project
cd my-interop-project
uv run interop      # pick: translate, source = noop, destination = noop, pipeline = example
```

The scaffolded layout is:

```
my-interop-project/
  pipelines/example.yaml           # YAML pipelines, one per file
  adapters.yaml                    # bindings of outbound ports to adapter names
  plugins/
    sources/  steps/  sinks/  adapters/
  inputs/   outputs/               # your data in, results out
  README.md
```

`translate` resolves the pipeline by name (`pipelines/<name>.yaml`), runs every node in order, and logs a summary line (duration, plus each output file's size) on completion. The console shows only errors. To see the summary line and each warning, start tz-oss-interop with `INTEROP_LOG_LEVEL=INFO uv run interop`. The `noop` source, step, and sink let you exercise the pipeline machinery without a real translation; replace any of them with project-local plugins in `plugins/<category>/` or with a third-party package shipping the same plugin protocols.

The interactive shell needs a real terminal (keypresses, cursor control).
Beyond `translate`, the shell also offers `solve` and `compare`. For a
worked end-to-end example, `docs/tutorials/user-tutorial.md` walks through `translate -> solve
-> compare` against the network `interop init` scaffolds with its `pypsa` example.

`solve` runs a translated model through the HiGHS solver. The prompt `Model type?` takes one of three answers:

- `sienna` dispatches a PowerSimulations.jl system with PowerSimulations.jl. The first run installs Julia and the solver packages.
- `pypsa` dispatches a PyPSA network with PyPSA, and needs no Julia.
- `sienna-investments` expands a PowerSystemsInvestments.jl portfolio. `docs/developer_documentation/capacity-expansion.md` tells you how.

At the prompt `Unserved energy?`, the answer `penalised` lets a dispatch leave load unserved at a penalty. With the default `refused`, one location that cannot meet its load makes the whole solve infeasible. [`docs/tutorials/solve.md`](docs/tutorials/solve.md) gives each prompt.

`compare` runs the results pipeline of each of two sides, and compares the two results tables. A table holds hourly variables, and the annual variables `installed_capacity`, `new_capacity`, `production` and `emissions`. When the results pipeline of a side needs a user mappings file, `compare` asks for one for that side. [`docs/results-format.md`](docs/results-format.md) gives each variable.

## Case studies

We ran tz-oss-interop against three published PLEXOS models and one published OSeMOSYS model.
Each page below says where to download the model, and exactly what to answer at the prompts.

| Model | Published by | Headline | Reproduce |
| --- | --- | --- | --- |
| SEM 2024-2032 | SEM Committee | The peak demand of each year, and the rating of each of the four interconnectors, match the published report to the digit. The average wholesale price that we calculate is 8.9% below the report in 2026. In 2032 it is 10.9% below. | [sem-2024-2032.md](docs/case_studies/sem-2024-2032.md) |
| CAISO 2026 Summer Assessment | CAISO | All five summer months reach an optimal solve. Four of the five hold each generator strictly on or off. May solves only when that rule relaxes. We also solved September with a network that can cut customer load at a price. It cut none, so the generators covered every hour of demand. | [caiso-sa26.md](docs/case_studies/caiso-sa26.md) |
| AEMO 2024 ISP | AEMO | The translation changes no demand value. All 210,240 half-hourly values match the demand traces of the model exactly, in each of the three scenarios. The hydro does not translate: the model measures its reservoirs in water, and the translator reads energy. | [aemo-isp-2024.md](docs/case_studies/aemo-isp-2024.md) |
| AETOS v2.0.0 | Kousoulos et al., RE-INTEGRATE project | In 2021, the PyPSA dispatch makes 4,140 TWh against 4,103 TWh published, and trades 377 TWh against 390 TWh. Its emissions are 243 Mt high. Two causes explain almost all of it: a limit between two years, and 24 gas plants outside the gas network. The Sienna dispatch makes 370 TWh less, because its solve ignores the loss of each conversion between two electricity fuels of one country. | [aetos.md](docs/case_studies/aetos.md), [aetos-comparison.md](docs/case_studies/aetos-comparison.md) |

You can translate and solve these models from this repository. For the three PLEXOS models, we
measured each figure that a publisher's own report gives on 2026-08-18. The tooling that took those particular measurements is not in
this repository, so those exact figures are not reproducible here. No publisher's data is
redistributed with tz-oss-interop: a case study page says where to download the model, and where a
comparison needs the numbers from a report, which columns to write them out in. For AETOS, a
script outside tz-oss-interop made the test copies, so their figures are not reproducible here.

Two limits apply to the figures of the three PLEXOS models. The first limit also applies to AETOS.

- **No solve holds back reserve.** A source model keeps spare capacity in hand, to cover a
  generator that fails. The translator writes those reserve requirements to a sidecar file
  beside the network, and nothing applies them. Thus our dispatch is freer than the dispatch
  of the source model.
- **No network can report a shortage.** None holds a generator that supplies an hour the
  other generators cannot cover. Thus such an hour makes the solve fail, and it gives no
  quantity for the energy that the network did not serve. The AETOS runs use the answer
  `penalised` at the `Unserved energy?` prompt, which reports the unserved energy.

## Extending

`docs/developer_documentation/extending.md` walks through writing a project-local plugin (drop a `.py` file under `plugins/<category>/`), publishing one as a Python package (declare `[project.entry-points."interop.<category>"]` in your package's `pyproject.toml`), and contributing one upstream into `interop/plugins/<category>/`.

## Testing your pipelines

```bash
uv add --group dev "tz-oss-interop" "tz-oss-interop-testing"
```

`tz-oss-interop-testing` is a separate, optional package (`libs/interop-testing/`) publishing the harness that tz-oss-interop tests itself with: fixture builders for every framework it reads, assertion vocabulary for every one it writes, project scaffolding, and an in-process pipeline driver, wrapped in a pytest-bdd step vocabulary. It depends on `tz-oss-interop`, never the reverse, so it never becomes a runtime dependency of anything. The two release from one git tag, and the harness requires the library at that same version. A project writes BDD scenarios against its own pipelines without copying any of it. Nothing registers itself on install; `docs/developer_documentation/extending.md` covers the one line that registers the steps, then the full vocabulary.

## Headless invocation

`interop headless_cli` runs a single translate pipeline non-interactively —
no prompts, no menu — for use as a container entrypoint (e.g. a GCP Batch
job). Success exits `0`; any failure exits non-zero with a clear message on
stderr/logs.

Like the interactive shell, headless resolves the project (`pipelines/`,
`adapters.yaml`) from the current working directory — `cwd` is the project
root, exactly as it is for `interop`:

```bash
cd my-model
interop headless_cli --pipeline example
```

`--pipeline` is the only required argument; the source/destination
framework pair is derived automatically from the pipeline YAML, so it's
never passed on the command line.

Per-node parameters are supplied as `--override` flags, using the same
`node.field` prefixes as the interactive prompts (but without the trailing `?`),
e.g. `source.file_path`, `step[0].scenario`, `sink[0].output_path`:

```bash
interop headless_cli --pipeline example \
  --override 'source.file_path=inputs/network.nc' \
  --override 'step[0].scenario=high_demand' \
  --override 'sink[0].output_path=outputs/result.json'
```

- `source.<field>=<value>` overrides a field on the pipeline's source node.
- `step[<n>].<field>=<value>` / `sink[<n>].<field>=<value>` override a field
  on the step/sink at that 0-based position in the pipeline YAML (steps and
  sinks are indexed independently — `step[0]` and `sink[0]` refer to
  unrelated nodes).
- `--override` can be repeated for multiple fields.
- `--user-mappings-path <value>` supplies the user mappings file, for
  pipelines that need one.
- `--keep-staging` preserves the staging directory after a successful run
  (off by default).

The same overrides can be set via environment variables instead of flags —
useful when the caller (e.g. a Batch job's container config) sets
environment rather than a command line:

```bash
INTEROP_PIPELINE=example \
INTEROP_OVERRIDE_SOURCE__file_path=inputs/network.nc \
INTEROP_OVERRIDE_STEP_0__scenario=high_demand \
INTEROP_OVERRIDE_SINK_0__output_path=outputs/result.json \
INTEROP_USER_MAPPINGS_PATH=inputs/user_mappings.yaml \
interop headless_cli
```

Flags and environment variables can be combined; where both set the same
field, the flag wins.

Override values are plain strings, passed through exactly as given — the
same as the interactive prompts' free-text answers. Type validation (e.g.
numbers, booleans, enum values) happens downstream against each node's own
parameter schema, so a malformed value surfaces as a translate failure with
a schema-validation message, not a headless-specific error.

`headless_cli` reads and writes through whatever `FilesystemPort` is
configured in `adapters.yaml` — `local_filesystem` by default, or
`http_filesystem` (reading/writing via signed URLs instead of local paths)
when that's what a deployment binds. Override values are location strings
either way; which adapter is bound determines whether they're interpreted
as local paths or URLs.

## Running tz-oss-interop in a container

A `Dockerfile` in the repo root builds a generic image whose entrypoint is
the headless CLI (see "Headless invocation" above) — no project baked in.
The specific project (`pipelines/`, `adapters.yaml`, etc.) is supplied at
run time, mounted into the container.

### Build the image

```bash
docker build -t interop:local .
```

This is a multi-stage build: a builder stage installs the package and its
runtime dependencies with `uv` into a virtualenv; the final image copies
just that virtualenv into a minimal `python:3.13-slim` base, so build
tooling and dev/test dependencies never ship in the runtime image.

### Run it locally against a project

Mount an existing project directory (one scaffolded with `interop init`,
or a real deployment's project) to `/project` — this becomes the
container's working directory, exactly as `cwd` does for a local
`interop headless_cli` invocation:

```bash
docker run -v $(pwd)/my-model:/project interop:local --pipeline example
```

Anything after the image name is passed straight through to `headless_cli`,
so the same `--override`/`INTEROP_OVERRIDE_*` flags and environment
variables documented above work identically here — for env vars, pass them
with `-e`:

```bash
docker run \
  -e INTEROP_PIPELINE=example \
  -e INTEROP_OVERRIDE_SOURCE__file_path=inputs/network.nc \
  -v $(pwd)/my-model:/project \
  interop:local
```

Output files land back on the host filesystem through the same mount,
since the container writes through the mounted volume, not to its own
ephemeral filesystem — `ls my-model/outputs/` after a run shows the real
result.

### Reproducing a failure off-cloud

Because the image and its entrypoint are identical to what a cloud job (e.g., GCP batch)
runs, a failure seen in the cloud can be reproduced locally by running the
same image against the same (or an equivalent) project and override values
— no cloud access needed to debug a translate failure.



## Contributing

Contributions are welcome — bug reports, case studies, translation mappings, and code alike. [`CONTRIBUTING.md`](CONTRIBUTING.md) covers the setup, the conventions, and the quality gates a pull request has to pass. Every commit carries a [Developer Certificate of Origin](DCO) sign-off (`git commit -s`); there is no contributor agreement to sign.

### Develop

| Task | Command |
| --- | --- |
| Lint | `uv run ruff check .` |
| Format check | `uv run ruff format --check .` |
| Auto-format | `uv run ruff format .` |
| Type-check (strict) | `uv run mypy interop libs tests .github/scripts scripts` |
| Import contracts | `uv run lint-imports` |
| Tests (pytest-bdd) | `uv run pytest` |
| Mutation tests | `uv run python scripts/run_mutmut.py run` (see [`docs/developer_documentation/mutation-testing.md`](docs/developer_documentation/mutation-testing.md)) |
| Install pre-commit hook (once) | `uv run pre-commit install` |

The pre-commit hook runs ruff (autofix + format), mypy strict, `lint-imports`, a plugin-inheritance check, and basic file-hygiene checks (trailing whitespace, EOF newlines, YAML/TOML validity) on every `git commit`. Config: `.pre-commit-config.yaml`.

CI runs the lint, test, and mutation suites on every push to a PR branch targeting `main` (`.github/workflows/lint.yml`, `test.yml`, `mutation.yml`). The mutation workflow builds a kill-score report, and `pr-comment.yml` posts it as a sticky comment on the PR. `pr-comment.yml` runs from `main`, so a PR from a fork gets the comment too.

### Layout

```
interop/                              # Python package (importable as `interop`)
  main.py                             # composition root: builds container, launches REPL
  core/
    use_cases/                        # use case implementations (Translate, InitProject)
    factories.py  pipeline.py  runner.py
    plugin_errors.py
  ports/
    inbound/                          # use case Protocols (TranslateUseCase, InitProjectUseCase)
    outbound/                         # outbound port Protocols (FilesystemPort)
  adapters/
    inbound/
      interactive_cli/                # questionary REPL (the only inbound surface)
    outbound/                         # outbound adapter implementations (local_filesystem)
  di/                                 # Dishka container, plugin discovery, factories
  plugins/{sources,steps,sinks}/      # built-in plugins shipped inside the package
  plugins/shared/                     # utilities shared between plugins
  pipelines/                          # built-in pipeline YAMLs (e.g. noop, noop-chain)
  templates/init/                     # project skeleton copied by `interop init`
  logging_setup.py
tests/
  features/                           # .feature files and harness README
  step_defs/                          # pytest-bdd step implementations
  fixtures/                           # test-fixture packages (e.g. entry-point demo)
docs/                                 # design docs, translation mapping, extending guide
```

Hexagonal invariants enforced by `lint-imports` (see `[tool.importlinter]` in `pyproject.toml`):

- Outbound adapters do not import each other.
- Core does not import adapters, plugins, DI, or main.
- Ports do not import adapters, core, DI, or main.
- Inbound adapters do not import outbound adapters directly.
- Plugins depend only on core and ports.
- Steps do not read or write the filesystem (only sources and sinks do, via `FilesystemPort`).

Use cases live under `interop/core/use_cases/`, each implementing a Protocol port under `interop/ports/inbound/`. Adapters resolve the port from the Dishka container; they never reach into runner or factory helpers directly.

## Documentation

- `docs/tutorials/user-tutorial.md` is the end-to-end walkthrough: `translate -> solve -> compare` against the network `interop init` scaffolds with its `pypsa` example.
- `docs/tutorials/developer-tutorial.md` extends that example with a custom pipeline step (writing your own translation logic).
- `docs/tutorials/solve.md` covers the `solve` command (Julia and PowerSimulations.jl install automatically on first run).
- `docs/case_studies/` holds the pages for each published model that tz-oss-interop ran against: where to download it, what to answer at the prompts, and what the run measured.
- `docs/case_studies/aetos-comparison.md` measures how close the OSeMOSYS → Sienna → PyPSA translation of AETOS comes to the published results, and gives the cause of each difference.
- `docs/results-format.md` defines the results table that each results pipeline writes and that `compare` reads.
- `docs/performance.md` gives the time and the memory a translation needs, against the size of the model, measured over the three PLEXOS case study models and over synthetic PyPSA networks.
- `docs/developer_documentation/capacity-expansion.md` covers running a Sienna portfolio as a capacity expansion in PowerSystemsInvestments.jl.
- `docs/developer_documentation/comparison.md` covers the `compare` command and the report it produces.
- `docs/developer_documentation/extending.md` shows how to write project-local plugins, ship plugin packages, and contribute upstream plugins.
- `docs/developer_documentation/osemosys-canonical-format.md` describes how an OSeMOSYS model stages into the canonical OSeMOSYS stage, and the user mappings file that controls it.
- `docs/tutorials/osemosys-mappings.md` is a tutorial for the `osemosys:` part of the mappings file. Each lesson changes one small OSeMOSYS model, and fixes the change with a minimal mappings file.
- `docs/tutorials/osemosys-default-names.md` lists the default OSeMOSYS names that tz-oss-interop maps with no mappings file, and the facts that a mappings file must state.
- `docs/translation_mappings/translation-from-pypsa-to-sienna.md` is the authoritative mapping reference for PyPSA / Sienna field translation.
- `docs/translation_mappings/translation-from-plexos-to-pypsa.md` states what each part of a PLEXOS model becomes in PyPSA.
- `docs/translation_mappings/translation-from-plexos-to-sienna.md` states the same for Sienna, and `plexos-to-sienna-gap-analysis.md` beside it names each thing a PLEXOS model states that SiennaSchemas holds no type and no field for.
- `docs/translation_mappings/translation-from-plexos-to-sienna-investments.md` states what a PLEXOS expansion plan becomes in a Sienna investments portfolio, which `plexos-to-sienna-investments` writes beside the base system.
- `docs/translation_mappings/translation-from-osemosys-to-sienna.md` states what each part of an OSeMOSYS model becomes in a Sienna system, and `translation-from-osemosys-to-sienna-investments.md` states the same for a Sienna investments portfolio. `osemosys-to-sienna-gap-analysis.md` beside them names each thing that the translation and the solves lose, and its effect.
- `docs/developer_documentation/mutation-testing.md` covers the mutmut workflow.
- `docs/developer_documentation/release.md` covers cutting a release: what the tag does, how the version reaches each artefact, and how to yank a bad release.
- `docs/developer_documentation/routines.md` covers the nightly and PR steward agents that run on this repository as Conductor routines.
- `tests/features/README.md` explains the in-process REPL-driven BDD harness and when subprocess is needed.

## Community

- [Discussions](https://github.com/transition-zero/tz-oss-interop/discussions): questions, ideas, and showing what you have run tz-oss-interop against. Start here rather than with an issue if you are not sure something is a bug.
- [Issues](https://github.com/transition-zero/tz-oss-interop/issues) — bug reports and feature requests.
- [`CONTRIBUTING.md`](CONTRIBUTING.md) — how to set up, what a change needs, and how it gets merged.
- [`CODE_OF_CONDUCT.md`](CODE_OF_CONDUCT.md) — the Contributor Covenant, and how to report a problem.
- [`SECURITY.md`](SECURITY.md) — how to report a vulnerability privately.

## Acknowledgements

Development of this tool would not have been possible without the funding from [Breakthrough Energy](https://www.breakthroughenergy.org/).

tz-oss-interop builds on [PyPSA](https://pypsa.org/) and on NREL's [Sienna](https://www.nrel.gov/analysis/sienna.html) ecosystem, and would not exist without the work of both communities.

## License

Apache License 2.0 — see [`LICENSE`](LICENSE) and [`NOTICE`](NOTICE).

Copyright 2026 TransitionZero. TransitionZero is a company limited by guarantee registered in England and Wales, company number 12914740 and registered charity number 1194424, whose registered office is at 7 Bell Yard, London, WC2A 2JR.
