← Về thư mục
skills/pkpd-modeling/scripts/_common.py
- InputError · class · L36-L37 — class InputError(Exception)
- fmt · function · L43-L63 — def fmt(value: Any, digits: int = 6) -> str
- parse_float · function · L66-L85 — def parse_float(text: Any, field_name: str = "value", allow_missing: bool = False)
- parse_positive · function · L88-L92 — def parse_positive(text: Any, field_name: str) -> float
- _sniff_delimiter · function · L98-L104 — def _sniff_delimiter(sample: str, path: Path) -> str
- read_table · function · L107-L146 — def read_table(source: str | Path) -> list[dict[str, str]]
- require_columns · function · L149-L156 — def require_columns(rows: Sequence[Mapping[str, Any]], required: Iterable[str], where: str) -> None
- column · function · L159-L160 — def column(rows: Sequence[Mapping[str, Any]], name: str, allow_missing: bool = False) -> list
- group_by · function · L163-L168 — def group_by(rows: Sequence[Mapping[str, Any]], key: str) -> dict[str, list[Mapping[str, Any]]]
- Table · class · L175-L188 — class Table
- headers · method · L180-L188 — def headers(self) -> list[str]
- Report · class · L192-L270 — class Report
- table · method · L205-L206 — def table(self, title: str, rows: Sequence[Mapping[str, Any]], columns: Sequence[str] | None = None) -> None
- scalar · method · L208-L209 — def scalar(self, name: str, value: Any) -> None
- note · method · L211-L212 — def note(self, text: str) -> None
- finding · method · L214-L215 — def finding(self, text: str) -> None
- _render_table · method · L219-L232 — def _render_table(self, table: Table) -> str
- emit · method · L234-L270 — def emit(self, fmt_name: str, stream=None, err=None) -> int
- _json_default · function · L273-L280 — def _json_default(obj: Any) -> Any
- add_format_argument · function · L286-L292 — def add_format_argument(parser: argparse.ArgumentParser) -> None
- main_wrapper · function · L295-L308 — def main_wrapper(func, argv: Sequence[str] | None = None) -> int