Standardisation 8
This commit is contained in:
@@ -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",
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user