From 55784e5a52c0b519dfcd385689e6dab7ed278c92 Mon Sep 17 00:00:00 2001 From: Szymon Szyszkowski Date: Tue, 21 Jan 2025 15:49:44 +0000 Subject: [PATCH] feat: finemapping manifest generator scheleton --- .../batch/manifest_generators/finemapping.py | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 src/ot_orchestration/operators/batch/manifest_generators/finemapping.py diff --git a/src/ot_orchestration/operators/batch/manifest_generators/finemapping.py b/src/ot_orchestration/operators/batch/manifest_generators/finemapping.py new file mode 100644 index 00000000..4f223bf4 --- /dev/null +++ b/src/ot_orchestration/operators/batch/manifest_generators/finemapping.py @@ -0,0 +1,20 @@ +"""Manifest generator for finemappping.""" + +from __future__ import annotations + +from ot_orchestration.operators.batch.manifest_generators import ProtoManifestGenerator +from ot_orchestration.types import ManifestGeneratorSpecs + + +class FinemappingManifestGenerator(ProtoManifestGenerator): + def __init__(self, *, commands, options, manifest_kwargs): + pass + + @classmethod + def from_generator_config(cls, specs: ManifestGeneratorSpecs) -> FinemappingManifestGenerator: + """Create a FinemappingManifestGenerator from the specification.""" + return cls( + commands=specs["commands"], + options=specs["options"], + manifest_kwargs=specs["manifest_kwargs"], + )