Skip to content

Utils Checks

Module: spectralbridge.utils_checks.

Lightweight file integrity helpers for pipeline idempotency checks.

API glossary ยท Workflow / scientific context

Signatures and documentation below are collected from the current source. Advanced objects are not newly declared stable by inclusion here.

Audience: advanced.

is_valid_envi_pair

is_valid_envi_pair(img_path: Path, hdr_path: Path) -> bool

Return True if both ENVI files exist and are non-empty.

Audience: advanced.

is_valid_json

is_valid_json(json_path: Path) -> bool

Return True if the JSON file exists, is non-empty, and parses.