solprop.driver.routes.keywords#
Name the keyword a refusal or a warning concerns (SEP 41, S10).
A keyword route builds physics objects from its keywords; an error or a warning those objects raise is attributed here to the keyword the caller typed.
Functions
|
Build a route's request from its constructor's locals. |
- solprop.driver.routes.keywords.keyword_request(kind, scope, **given)[source]#
Build a route’s request from its constructor’s locals.
- Parameters:
- kindtype
The request, a frozen dataclass whose fields are keywords of the route.
- scopecollections.abc.Mapping
The public constructor’s
locals(): each field of kind it holds is taken from it, and anything else in it is ignored.- **givenobject
Fields set otherwise than the constructor took them, overriding scope. A field in neither keeps its default.
- Returns:
- object
The request, an instance of kind.