LION.utils.parameter¶
Classes
|
LION's parameters: a plain namespace of settings ( |
|
The parameters of an operator, which make it again: one class per kind of operator. |
Functions
|
|
|
A record read from a file, with the old names of the operator's parameters ( |
- class LION.utils.parameter.LIONParameter(**kwargs)[source]¶
Bases:
objectLION’s parameters: a plain namespace of settings (
p.n_iters = 10), used for every model’s, solver’s, experiment’s and reconstructor’s settings. Values can be other parameters (nested);save/loadwrite and read them as JSON, andprintshows them all.The parameters given as keywords,
LIONParameter(n_iters=10). A dict value becomes aLIONParameter, unless it is a spec (a dict with"_target_", seeLION.utils.spec), which describes an object and stays a dict.
- class LION.utils.parameter.OperatorParameters(**kwargs)[source]¶
Bases:
LIONParameterThe parameters of an operator, which make it again: one class per kind of operator. For CT, it’s the
Geometry(LION.operators.ct.ct_geometry): wherever LION asks foroperator_params, a CT user gives their geometry.Components that need an operator take its parameters (
operator_params) and callmake_operator(), so they work with any kind of operator.The parameters given as keywords,
LIONParameter(n_iters=10). A dict value becomes aLIONParameter, unless it is a spec (a dict with"_target_", seeLION.utils.spec), which describes an object and stays a dict.- property split_count¶
How many measurement units the operator can be split along (for CT, the angles).