femic.pipeline.vdyp_stage

VDYP execution stage helpers for legacy notebook migration.

Functions

build_bootstrap_vdyp_results_runner(*, tsa, ...)

Build a zero-arg bootstrap callback for load_or_build_vdyp_results_tsa(...).

build_curve_fit_adapter(*[, curve_fit_impl, ...])

Build legacy-compatible curve_fit wrapper handling maxfev/max_nfev.

build_curve_smoothing_plot_config(*, sns_module)

Build and apply legacy curve-smoothing plot defaults.

build_fit_stratum_curves_runner(*, f_table, ...)

Build a compile-one callback that runs fit_stratum_curves(...) for one stratum.

build_run_vdyp_for_stratum_runner(*, tsa, ...)

Build a per-TSA VDYP runner callable for bootstrap dispatch helpers.

build_smoothed_curve_table(*, smoothed_runs, ...)

Build and optionally persist the smoothed VDYP curve table.

build_stratum_fit_run_config(*[, ...])

Build defaults for pre-VDYP stratum fit stage settings.

build_vdyp_batch_command(*, vdyp_binpath, ...)

Build legacy VDYP command text used for execution and logging metadata.

build_vdyp_run_context(*[, base_context, ...])

Build VDYP run context payload while preserving caller-provided values.

build_vdyp_run_event(*, status, phase, ...)

Build one VDYP run event payload with shared base fields.

collect_vdyp_batch_run_metadata(*, result, ...)

Collect subprocess/file metadata shared by parse-error and success events.

compile_strata_fit_results(*, strata_df, ...)

Compile fit payloads for each selected stratum index/code pair.

emit_vdyp_run_event(*, append_jsonl_fn, ...)

Emit one VDYP run event record through the provided append sink.

ensure_local_vdyp_runtime_assets(*, ...[, ...])

Ensure legacy relative VDYP runtime assets exist under local vdyp_io/.

execute_bootstrap_vdyp_runs(*, tsa, run_id, ...)

Execute bootstrap VDYP runs across stratum/SI combinations.

execute_curve_smoothing_runs(*, tsa, run_id, ...)

Build smoothed VDYP curves for each stratum/SI combination.

execute_vdyp_batch(*, feature_ids, vdyp_ply, ...)

Run one VDYP batch and return parsed per-feature output tables.

fit_stratum_curves(*, f_table, fit_func, ...)

Fit per-SI species curves for one stratum using legacy notebook logic.

load_or_build_vdyp_results_tsa(*, tsa, ...)

Resolve per-TSA VDYP results from cache, combined cache, or fresh bootstrap.

load_vdyp_input_tables(*, ...[, ...])

Load VDYP polygon/layer tables from feather cache or source geodatabase.

normalize_vdyp_run_event_counts(*, ...)

Normalize run-event count fields to integers in one shared seam.

plot_curve_overlays(*, results_for_tsa, ...)

Render legacy VDYP overlay plots for smoothed curves.

resolve_vdyp_batch_execution_dependencies(*, ...)

Resolve injected/default callable dependencies for VDYP batch execution.

resolve_vdyp_batch_temp_artifacts(*, ...)

Resolve temp-file basenames and full paths for VDYP batch processing.

run_vdyp_for_stratum(*, sample_table, tsa, ...)

Run VDYP for one stratum sample table with logging and sampling orchestration.

run_vdyp_sampling(*, sample_table, nsamples, ...)

Run legacy VDYP sampling flow (auto/all/fixed) for one stratum sample table.

Classes

CurveSmoothingPlotConfig(plot, figsize, ...)

Plot defaults for legacy VDYP curve-smoothing overlays.

SmoothedCurveResult(stratumi, stratum_code, ...)

One smoothed curve result for a stratum/SI combination.

StratumFitRunConfig(fit_rawdata, ...)

Defaults for pre-VDYP stratum curve-fit compilation runs.

VdypBatchExecutionDependencies(...)

Resolved callable dependencies used by execute_vdyp_batch(...).

VdypBatchTempArtifacts(vdyp_ply_csv, ...)

Resolved temp-file names and absolute paths for one VDYP batch run.

VdypRunEventCounts(feature_count, ...)

Normalized integer count fields shared by VDYP run events/headers.