← Về thư mục
skills/qutip/scripts/_common.py
- CliError · class · L36-L37 — class CliError(ValueError)
- load_qutip · function · L40-L58 — def load_qutip() -> Any
- _reject_constant · function · L61-L62 — def _reject_constant(value: str) -> None
- _unique_object · function · L65-L71 — def _unique_object(pairs: list[tuple[str, Any]]) -> dict[str, Any]
- checked_input_file · function · L74-L99 — def checked_input_file( value: str | os.PathLike[str], *, suffixes: Iterable[str] = (".json",), max_bytes: int = MAX_INPUT_BYTES, ) -> Path
- checked_output_file · function · L102-L125 — def checked_output_file( value: str | os.PathLike[str], *, force: bool = False, ) -> Path
- load_json_object · function · L128-L145 — def load_json_object(value: str | os.PathLike[str]) -> dict[str, Any]
- validate_keys · function · L148-L164 — def validate_keys( value: Mapping[str, Any], *, allowed: Iterable[str], required: Iterable[str] = (), context: str = "object", ) -> None
- bounded_int · function · L167-L180 — def bounded_int( value: Any, *, name: str, minimum: int, maximum: int, ) -> int
- finite_float · function · L183-L205 — def finite_float( value: Any, *, name: str, minimum: float | None = None, maximum: float | None = None, minimum_inclusive: bool = True, ) -> float
- bounded_dimensions · function · L208-L224 — def bounded_dimensions(value: Any, *, name: str = "dims") -> list[int]
- parse_csv_ints · function · L227-L252 — def parse_csv_ints( value: str, *, name: str, minimum: int, maximum: int, max_items: int = MAX_SWEEP_RUNS, ) -> list[int]
- ensure_strictly_increasing · function · L255-L265 — def ensure_strictly_increasing(values: Sequence[float], *, name: str) -> None
- to_jsonable · function · L268-L289 — def to_jsonable(value: Any) -> Any
- strict_json_bytes · function · L292-L313 — def strict_json_bytes(document: Any) -> bytes
- emit_json · function · L316-L345 — def emit_json( document: Any, *, output: str | os.PathLike[str] | None = None, force: bool = False, ) -> None
- add_output_arguments · function · L348-L359 — def add_output_arguments(parser: Any) -> None
- run_cli · function · L362-L370 — def run_cli(action: Callable[[], int | None]) -> int