femic.pipeline.io

I/O-oriented helpers shared across pipeline entrypoints.

Functions

build_legacy_data_artifact_paths(*[, ...])

Build legacy 00_data-prep artifact path payload under one data root.

build_legacy_execution_plan(*, run_config, ...)

Resolve all command/env/path details needed to execute the legacy script.

build_pipeline_run_config(*, tsa_list, resume)

Create normalized pipeline run configuration from CLI inputs.

build_ria_vri_checkpoint_paths(*[, ...])

Build ordered legacy VRI checkpoint artifact paths.

file_sha256(path)

Return SHA256 hex digest for file contents.

load_default_tsa_list([config_path])

Load default TSA list from a dev-facing TOML config file.

load_pipeline_run_profile(config_path)

Load YAML/JSON run profile used to seed CLI options.

normalize_tsa_list(tsa_list, *[, ...])

Return zero-padded TSA codes, defaulting to configured dev defaults.

resolve_effective_run_options(*, tsa_list, ...)

Merge CLI run values with profile defaults and normalize for execution.

resolve_legacy_external_data_paths(*, repo_root)

Resolve legacy external data root + canonical VRI/TSA source paths.

resolve_legacy_siteprod_artifacts(*, ...)

Prefer canonical pre-stacked SiteProd artifacts when both TIFF + band map exist.

resolve_legacy_thlb_raster_path(*, ...[, ...])

Resolve THLB raster path with external-data fallback for instance clones.

resolve_run_paths(*, script_path[, ...])

Resolve canonical script/repo/log paths for a pipeline run invocation.

Classes

EffectiveRunOptions(tsa_list, strata_list, ...)

Resolved run options after merging CLI values with optional profile config.

LegacyDataArtifactPaths(ria_stands_path, ...)

Legacy data artifact paths used by 00_data-prep orchestration.

LegacyExecutionPlan(script_path, run_paths, ...)

Fully resolved execution inputs for legacy subprocess runs.

LegacyExternalDataPaths(external_data_root, ...)

Resolved external source roots consumed by legacy 00_data-prep.

LegacySiteProdArtifacts(siteprod_tif_path, ...)

Resolved SiteProd artifacts for Stage 00 runtime selection.

PipelineRunConfig(tsa_list, resume[, ...])

Explicit run configuration passed from CLI into workflow wrappers.

PipelineRunProfile([tsa_list, strata_list, ...])

Config-file driven run profile for selecting TSAs/strata and mode flags.

RunPaths(repo_root, script_path, log_dir)

Resolved filesystem roots used by the legacy workflow wrapper.