mythos.input.toml ================= .. py:module:: mythos.input.toml .. autoapi-nested-parse:: Utilities for parsing TOML files. Attributes ---------- .. autoapisummary:: mythos.input.toml.ERR_MISSING_TOML_ENTRY mythos.input.toml.SYMPY_EVAL_N Functions --------- .. autoapisummary:: mythos.input.toml.parse_str mythos.input.toml.parse_value mythos.input.toml.parse_toml Module Contents --------------- .. py:data:: ERR_MISSING_TOML_ENTRY :value: 'Missing entry {entry} in TOML file' .. py:data:: SYMPY_EVAL_N :type: int :value: 32 .. py:function:: parse_str(value: str) -> str | float Parses a string value to a float if possible. .. py:function:: parse_value(value: str | float | list[str] | list[float]) -> str | float | numpy.ndarray Parses a value to a float or array if possible. .. py:function:: parse_toml(file_path: pathlib.Path | str, key: str | None = None) -> dict[str, Any] Parses a TOML file and returns a dictionary representation of the file.