API Reference - Models
pyepisuite.models
ModuleError
dataclass
A module that failed to estimate, returned in place of its result.
The three fields are deliberately required: that lets dacite tell an error
payload apart from a real module result when resolving the
Union[ModuleError, ...] used for every module on ResultEPISuite.
A normal result has none of these keys, so it falls through to the result
type; only a genuine error object matches here.
Source code in src/pyepisuite/models.py
Parameters
dataclass
Request inputs echoed back by the API.
Only the inputs actually supplied are present; everything else is absent. Names follow the v1.1.0 submit query parameters.
Source code in src/pyepisuite/models.py
TypedEcosarResult
dataclass
One of the typed ECOSAR submodels (surfactant, polymer or dye).
These run only when the caller supplies the submodel's own inputs (chain
length, ethoxylate count, and so on), so for an ordinary organic submission
every typed submodel comes back as a ModuleError instead.
Source code in src/pyepisuite/models.py
Value
dataclass
A measured, estimated or user-supplied quantity with its provenance.
The v1.1.0 API models every value this way, whether it is an estimate, one of a property's experimental values, the selected value, or an echoed request parameter.
Source code in src/pyepisuite/models.py
ensure_flags(value)
Normalize flags input to Optional[Dict[str,bool]].
Accepts dict, iterable of (key, val) pairs, iterable of keys, generator, and some string forms. Returns None when no usable value.