CPAlgs: everything is an option, improve prinouts, add info string
Added logging to config seq, block, factory, text.
Added info string for the majority of the block options.
Made all __init__
args options for the block. The init args are
still there but they are no longer required when initializing the block
so that the changes are backwards compatible.
Add default value to ConfigBlcokOptions
so this can be printed out.
We can also now tell what options have been changed and can print
this info if we want.
Improved print outs in config seq, block, factory, text.
ConfigFactory(Text).printAlgs()
will now print all information that is available
(info string, default, type, required, and noneAction) about
the blocks included in ConfigFactory(Text)
. This can be used as documentation for the different
blocks.
As an example:
Py:CPAlgCfgFactory INFO WorkingPoint -> ElectronWorkingPointConfig
Py:CPAlgCfgBlock INFO groupName:
Py:CPAlgCfgBlock INFO type: <class 'str'>
Py:CPAlgCfgBlock INFO default:
Py:CPAlgCfgBlock INFO required: False
Py:CPAlgCfgBlock INFO noneAction: ignore
Py:CPAlgCfgBlock INFO info: Used to specify this block when
Py:CPAlgCfgBlock INFO setting an option at an arbitrary location.
For make functions, only the options are printed.