Source code for blissoda.tomo.nxtomo.standard

from __future__ import annotations

from typing import Any

SEQUENCES = frozenset({"tomo:basic", "tomo:fullturn", "tomo:halfturn"})


[docs] def matches(processor: Any, entry: Any) -> bool: return processor._sequence_name(entry) in SEQUENCES
[docs] def expanded_subscan_plan(processor: Any, entry: Any) -> list[tuple[str | None, int]]: return processor._subscan_plan(entry)
[docs] def synthetic_translation(processor: Any, entry: Any, alias_name: str): return processor._position_array(entry, alias_name)
[docs] def segment_specs(processor: Any, entry: Any, records: list[dict[str, Any]]): return [{"label": None, "pieces": records}]