Details
details
¤
Dimensionless quantities and quantity kinds themselves do not store the precise definition of how it is derived.
This module contains optional details that "link" them together. It is
stored in a dictionary of expressions to its details. A
detail can contain multiple equations or
Our docs extraction layer reads dictionaries from this module to inject information into generated API docstrings.
SELF
¤
SELF = _RefSelf()
A special marker to represent a reference to "itself" in the meaning of a definition's where clause.
RefDetail
¤
RefDetail: TypeAlias = Union[
QtyKind, Dimensionless, Tagged, LazyProduct, Number
]
A reference to a quantity kind, dimensionless number, a numerical constant, or a string
HasKaTeXWhere
¤
Symbol
¤
Bases: HasKaTeXWhere
Stores a common symbol for a quantity kind.
Since the equation class already contains the symbol, adding the symbol is not necessary. However, it is useful when the quantity kind is not defined by an equation.
Equation
¤
Equation(
katex: str,
where: Where | None = None,
assumptions: set[StrFragment | tuple[StrFragment, ...]]
| None = None,
)
Bases: HasKaTeXWhere
Stores the equation for a quantity kind.
assumptions
¤
assumptions: (
set[StrFragment | tuple[StrFragment, ...]] | None
) = None
A set of assumptions under which the definition is valid.
DetailKey
¤
DetailKey: TypeAlias = Union[
QtyKind,
Dimensionless,
Tagged,
Scaled,
LazyProduct,
Number,
]