← Về thư mục
openai4s/host/remote_science.py
- RemoteScienceService · class · L26-L359 — class RemoteScienceService
- init · method · L29-L43 — def init( self, *, registry_factory: Callable[[], Any] | None = None, run_command: Callable[..., Any] | None = None, environment: Callable[[], Mapping[str, str]] | None = None, job_suffix: Callable[[], str] | None = None, provenance_recorder: Callable[..., None] | None = None, ) -> None
- _registry · method · L45-L50 — def _registry(self) -> Any
- _runner · method · L52-L53 — def _runner(self) -> Callable[..., Any]
- _env · method · L55-L56 — def _env(self) -> Mapping[str, str]
- _job_suffix · method · L58-L61 — def _job_suffix(self) -> str
- record_remote_provenance · method · L63-L89 — def record_remote_provenance( self, service: str, host: str, engine: str | None, remote_dir: str, provenance_json: str | None, ) -> None
- pop_remote_provenance · method · L91-L95 — def pop_remote_provenance(self) -> list
- _record_provenance · method · L97-L106 — def _record_provenance( self, service: str, host: str, engine: str | None, remote_dir: str, provenance_json: str | None, ) -> None
- fold · method · L108-L238 — def fold(self, spec: dict) -> dict
- score_mutations · method · L240-L359 — def score_mutations(self, spec: dict) -> dict
- _sequence · function · L373-L385 — def _sequence(value: Any, limit: int) -> str
- _integer · function · L388-L396 — def _integer(value: Any, field: str, *, minimum: int) -> int
- _positions · function · L399-L414 — def _positions(value: Any, length: int) -> list[int] | None
- _gpu_bound · function · L417-L428 — def _gpu_bound(registry: Any, host: str, gpu: int) -> None: # A zero count is the existing registry's unknown sentinel.
- _decoded_text · function · L431-L446 — def _decoded_text(value: str | None, field: str) -> str
- _NonFiniteJSON · class · L449-L450 — class _NonFiniteJSON(ValueError)
- _json_object · function · L453-L487 — def _json_object(value: str | None, field: str) -> dict
- invalid_number · function · L454-L455 — def invalid_number(_: str) -> None
- unique_object · function · L457-L463 — def unique_object(pairs: list[tuple[str, Any]]) -> dict
- _metadata_text · function · L490-L495 — def _metadata_text(value: Any, field: str) -> str | None
- _finite · function · L501-L514 — def _finite(value: Any, field: str) -> float: # Text fields (PDB columns, CSV cells) must be plain ASCII decimals: #
float() alone also accepts 1_0.5 and Unicode digits, which no # PDB reader or the workbench viewer parse the same way. [0-9] rather # than \d because \d matches those Unicode digits too.
- _matches_length · function · L517-L520 — def _matches_length(manifest: dict, field: str, length: int) -> None
- _validate_pdb · function · L523-L592 — def _validate_pdb(text: str, sequence: str) -> dict[tuple[str, int, str], str]
- _csv_rows · function · L595-L610 — def _csv_rows(text: str, field: str) -> tuple[list[str], list[dict[str, str]]]
- _validate_plddt · function · L613-L640 — def _validate_plddt(text: str, residues: dict[tuple[str, int, str], str]) -> None
- _validate_mutations · function · L643-L685 — def _validate_mutations( text: str, sequence: str, positions: list[int] | None ) -> dict[str, float]
- _validate_mutation_summary · function · L692-L733 — def _validate_mutation_summary(summary: dict, scores: dict[str, float]) -> None
- _block · function · L736-L744 — def _block(output: str, start: str, end: str) -> str | None