pystamps.io.dataset
Data classes/constants
- PATCH_PREFIX: "PATCH_"
- PATCH_STAGE_ARTIFACTS, MERGED_STAGE_ARTIFACTS
- DatasetLayout(root:Path, patches:list[Path], patch_list_file:Path|None)
- DatasetError(ValueError)
discover_dataset(root)
def discover_dataset(root: str|Path) -> DatasetLayout
Reads either explicit patch.list or directories with PATCH_ prefix.
infer_patch_stage(patch_dir)
def infer_patch_stage(patch_dir: str|Path) -> int
Returns highest stage number from known stage artifacts for a patch.
infer_merged_stage(root_dir)
def infer_merged_stage(root_dir: str|Path) -> int
Returns highest merged stage artifact stage for dataset root.
expected_stage_artifact(stage, scope)
def expected_stage_artifact(stage:int, scope:str) -> str|None
Scope is patch or merged.