ptyrad.params.ptyrad_params#
Defines the integrated pydantic model PtyRADParams used for default filling and validation of PtyRAD params files
- pydantic model ptyrad.params.ptyrad_params.PtyRADParams[source]#
Bases:
BaseModelThe major params object for PtyRAD.
This object is primarily used to fill in defaults, or validate values from the input params file.
However, this object can also be used as a skeleton to generate valid dict for
PtyRADSolver.Treat this
PtyRADParamsas the “schema” for the entire params file, or equivalently “the programmic definition of legal PtyRAD params”.PtyRADParamscontains 6 fields, which are:init_paramshypertune_paramsmodel_paramsloss_paramsconstraint_paramsrecon_params
These are the same with the nested dict defined in PtyRAD param files.
For detailed explanations of available options, check the API reference at: https://ptyrad.readthedocs.io/en/latest/_autosummary/ptyrad.params.html
- Fields:
- param init_params: InitParams [Required]#
Defines available options and validation rules for the
init_paramsdictionary.Note that
init_paramscontains dataset-dependent required fields.
- param hypertune_params: HypertuneParams [Optional]#
Defines available options and validation rules for the
hypertune_paramsdictionary.
- param model_params: ModelParams [Optional]#
Defines available options and validation rules for the
model_paramsdictionary.
- param loss_params: LossParams [Optional]#
Defines available options and validation rules for the
loss_paramsdictionary.
- param constraint_params: ConstraintParams [Optional]#
Defines available options and validation rules for the
constraint_paramsdictionary.
- param recon_params: ReconParams [Optional]#
Defines available options and validation rules for the
recon_paramsdictionary.