femic.pipeline.tipsy

Reusable TIPSY parameter helper utilities.

Functions

assess_tipsy_input_output_coherence(*, ...)

Assess whether TIPSY input and output look structurally coherent.

build_tipsy_input_table(*, ...[, table_key])

Build TIPSY input table rows from per-AU parameter payloads.

build_tipsy_params_for_tsa(*, tsa, ...[, ...])

Select eligible strata+SI combos and build TIPSY params for one TSA.

build_tipsy_warning_event(*, tsa, stratumi, ...)

Build standardized warning payload for TIPSY-input stage issues.

compute_file_sha256(path)

Compute deterministic SHA256 digest for file content.

compute_vdyp_oaf1(vdyp_out)

Compute OAF1 from mean VDYP % Stk values, handling malformed tables.

compute_vdyp_site_index(vdyp_out, *[, ndigits])

Compute mean SI across VDYP output tables, rounded for TIPSY input.

evaluate_tipsy_candidate(*, sc, ...[, ...])

Evaluate whether a stratum+SI candidate is usable for TIPSY parameter generation.

tipsy_output_input_fingerprint_path(*, ...)

Return sidecar path storing the canonical input fingerprint for TIPSY output.

tipsy_params_excel_path(*, tsa, ...)

Build legacy per-TSA TIPSY parameter workbook path.

tipsy_stage_output_paths(*, tsa[, output_root])

Build legacy 01b per-TSA output CSV paths.

validate_tipsy_output_is_fresh(*[, ...])

Fail fast when BatchTIPSY output is stale against canonical BTC CSV input.

write_tipsy_input_exports(*, tipsy_table, ...)

Write the human-readable TIPSY parameter workbook for one TSA.

write_tipsy_output_input_fingerprint(*, ...)

Persist canonical input CSV SHA256 used for the accepted BatchTIPSY output.

Classes

TIPSYCandidateEvaluation(eligible, reason, ...)

Eligibility outcome and derived metrics for one stratum+SI candidate.

TipsyInputOutputCoherence(coherent, summary, ...)