Skip to content

scans#

Work with multiple scans for analysis; scans.selected stays separate from scans.current.

current #

current() -> Scan | None

The active acquisition scan (mirrors state.current_scan); never part of the analysis working set.

loaded #

loaded() -> list[Scan]

Subset of the working set currently materialized in memory.

selected #

selected() -> list[Scan]

The analysis working set as proxies (data loads lazily).

apply_graph #

apply_graph(
    graph: str
    | Postprocessing
    | list[PostprocessingNode]
    | None = None,
) -> dict[str, GraphResult]

Run a processing graph over every scan in the working set; returns label (or id) mapped to GraphResult.

find #

find(
    project: str | None = None, group: str | None = None
) -> list[Scan]

List scans in a project (default: the current project) as lazy proxies.

load #

load(
    scan_id: str,
    project: str | None = None,
    label: str | None = None,
    analyze: bool = False,
) -> Scan

Add a scan to the working set, materialized as stored (no preprocessing/detection unless analyze).

pages #

pages() -> list[Page]

The workspace pages in panel order; selected is their scans, each once.

projects #

projects() -> list[str]

List project names that contain scans.

release #

release(scan_id: str | None = None) -> None

Remove a scan from the working set, or clear the whole set if None.

summary #

summary() -> str

Human-readable summary of the working set and what's loaded.