Standardisation 8

This commit is contained in:
2026-08-20 15:18:08 +02:00
parent 18d1e5e2bb
commit b19d3b0db6
9 changed files with 758 additions and 389 deletions
+2
View File
@@ -14,6 +14,7 @@ from .cli import (
from .json_io import (
JsonLockTimeout,
atomic_update_json,
atomic_write_bytes,
atomic_write_json,
atomic_write_text,
read_json,
@@ -32,6 +33,7 @@ __all__ = [
"WorkspaceNotFoundError",
"WorkspaceValidationError",
"atomic_update_json",
"atomic_write_bytes",
"atomic_write_json",
"atomic_write_text",
"evaluation_parser",
+4
View File
@@ -78,6 +78,10 @@ def atomic_write_text(
_atomic_write(Path(path), text.encode(encoding))
def atomic_write_bytes(path: str | Path, payload: bytes) -> None:
_atomic_write(Path(path), payload)
def atomic_write_json(
path: str | Path,
value: JsonValue,
+8
View File
@@ -101,6 +101,14 @@ class EvaluationWorkspace:
def correction_progress_file(self) -> Path:
return self.root / "correction_progress.json"
@property
def batch_jobs_file(self) -> Path:
return self.root / "batch_jobs.json"
@property
def batched_correction_result_file(self) -> Path:
return self.root / "batched_correction_result.jsonl"
@property
def manual_resolutions_file(self) -> Path:
return self.root / "manual_resolutions.txt"